AX: re-organize fake elements to use new AccessibilityMockObject
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-10-07  Chris Fleizach  <cfleizach@apple.com>
2
3         AX: re-organize fake elements to use new AccessibilityMockObject
4         https://bugs.webkit.org/show_bug.cgi?id=69588
5
6         This adds an AccessibilityMockObject for "fake" elements to descend from.
7         Its benefit is to consolidate the various ways that these fake elements are setting
8         and returning their parent objects.
9
10         No functional change, hence no new tests.
11
12         Reviewed by Jon Honeycutt.
13
14         * CMakeLists.txt:
15         * GNUmakefile.list.am:
16         * WebCore.gypi:
17         * WebCore.pro:
18         * WebCore.vcproj/WebCore.vcproj:
19         * WebCore.xcodeproj/project.pbxproj:
20         * accessibility/AccessibilityARIAGrid.cpp:
21         (WebCore::AccessibilityARIAGrid::addChildren):
22         * accessibility/AccessibilityImageMapLink.cpp:
23         (WebCore::AccessibilityImageMapLink::AccessibilityImageMapLink):
24         * accessibility/AccessibilityImageMapLink.h:
25         (WebCore::AccessibilityImageMapLink::node):
26         * accessibility/AccessibilityMenuList.cpp:
27         (WebCore::AccessibilityMenuList::addChildren):
28         * accessibility/AccessibilityMenuList.h:
29         (WebCore::toAccessibilityMenuList):
30         * accessibility/AccessibilityMenuListOption.cpp:
31         (WebCore::AccessibilityMenuListOption::AccessibilityMenuListOption):
32         (WebCore::AccessibilityMenuListOption::isVisible):
33         * accessibility/AccessibilityMenuListOption.h:
34         * accessibility/AccessibilityMenuListPopup.cpp:
35         (WebCore::AccessibilityMenuListPopup::AccessibilityMenuListPopup):
36         (WebCore::AccessibilityMenuListPopup::isOffScreen):
37         (WebCore::AccessibilityMenuListPopup::isEnabled):
38         (WebCore::AccessibilityMenuListPopup::menuListOptionAccessibilityObject):
39         (WebCore::AccessibilityMenuListPopup::press):
40         (WebCore::AccessibilityMenuListPopup::addChildren):
41         (WebCore::AccessibilityMenuListPopup::childrenChanged):
42         (WebCore::AccessibilityMenuListPopup::didUpdateActiveOption):
43         * accessibility/AccessibilityMenuListPopup.h:
44         * accessibility/AccessibilityMockObject.cpp: Added.
45         (WebCore::AccessibilityMockObject::AccessibilityMockObject):
46         (WebCore::AccessibilityMockObject::~AccessibilityMockObject):
47         * accessibility/AccessibilityMockObject.h: Added.
48         (WebCore::AccessibilityMockObject::parentObject):
49         (WebCore::AccessibilityMockObject::setParent):
50         (WebCore::AccessibilityMockObject::detachFromParent):
51         * accessibility/AccessibilitySlider.cpp:
52         (WebCore::AccessibilitySlider::addChildren):
53         (WebCore::AccessibilitySliderThumb::AccessibilitySliderThumb):
54         (WebCore::AccessibilitySliderThumb::elementRect):
55         * accessibility/AccessibilitySlider.h:
56         * accessibility/AccessibilityTable.cpp:
57         (WebCore::AccessibilityTable::addChildren):
58         (WebCore::AccessibilityTable::headerContainer):
59         * accessibility/AccessibilityTable.h:
60         (WebCore::toAccessibilityTable):
61         * accessibility/AccessibilityTableColumn.cpp:
62         (WebCore::AccessibilityTableColumn::AccessibilityTableColumn):
63         (WebCore::AccessibilityTableColumn::setParent):
64         (WebCore::AccessibilityTableColumn::headerObject):
65         (WebCore::AccessibilityTableColumn::headerObjectForSection):
66         (WebCore::AccessibilityTableColumn::accessibilityIsIgnored):
67         (WebCore::AccessibilityTableColumn::addChildren):
68         * accessibility/AccessibilityTableColumn.h:
69         * accessibility/AccessibilityTableHeaderContainer.cpp:
70         (WebCore::AccessibilityTableHeaderContainer::AccessibilityTableHeaderContainer):
71         (WebCore::AccessibilityTableHeaderContainer::accessibilityIsIgnored):
72         (WebCore::AccessibilityTableHeaderContainer::addChildren):
73         * accessibility/AccessibilityTableHeaderContainer.h:
74
75 2011-10-07  Nate Chapin  <japhet@chromium.org>
76
77         Make IconLoader a CachedResourceClient instead of a SubresourceLoaderClient.
78         This is one of the steps required to remove the SubresourceLoaderClient interface,
79         which will simplify the layering in the loader.
80         https://bugs.webkit.org/show_bug.cgi?id=69567
81
82         Reviewed by Adam Barth.
83
84         No new tests, no functionality change intended.
85
86         * CMakeLists.txt:
87         * GNUmakefile.list.am:
88         * WebCore.gypi:
89         * WebCore.pro:
90         * WebCore.vcproj/WebCore.vcproj:
91         * WebCore.xcodeproj/project.pbxproj:
92         * loader/cache/CachedRawResource.cpp: Added.
93         * loader/cache/CachedRawResource.h: Added.
94         * loader/cache/CachedResource.cpp:
95         * loader/cache/CachedResource.h:
96         (WebCore::CachedResource::ignoreForRequestCount): Renamed and generalized from isLinkResource(),
97             which was only used to decided whether the CachedResource should count toward
98             CachedResourceLoader::requestCount().
99         * loader/cache/CachedResourceLoader.cpp:
100         * loader/cache/CachedResourceLoader.h:
101         * loader/cache/CachedResourceRequest.cpp:
102         * loader/cache/CachedResourceRequest.h:
103         * loader/icon/IconLoader.cpp: Get a CachedResource instead of a SubresourceLoader.
104         (WebCore::IconLoader::notifyFinished): Merge in the status code check that was in didReceiveResponse(),
105             since we won't be checking any callbacks before the load completes.
106         * loader/icon/IconLoader.h:
107
108 2011-10-07  Adam Bergkvist  <adam.bergkvist@ericsson.com>
109
110         Add WebCore platform interfaces needed by updated PeerConnection design
111         https://bugs.webkit.org/show_bug.cgi?id=68460
112
113         Reviewed by Adam Barth.
114
115         Added the PeerConnection platform files to WebCore/platform/mediastream
116
117         Currently not testable.
118
119         * GNUmakefile.am:
120         * GNUmakefile.list.am:
121         * WebCore.gyp/WebCore.gyp:
122         * WebCore.gypi:
123         * platform/mediastream/MediaStreamComponent.h: Added.
124         (WebCore::MediaStreamComponent::create):
125         (WebCore::MediaStreamComponent::source):
126         (WebCore::MediaStreamComponent::enabled):
127         (WebCore::MediaStreamComponent::setEnabled):
128         (WebCore::MediaStreamComponent::MediaStreamComponent):
129         * platform/mediastream/MediaStreamDescriptor.h: Added.
130         (WebCore::MediaStreamDescriptor::create):
131         (WebCore::MediaStreamDescriptor::owner):
132         (WebCore::MediaStreamDescriptor::setOwner):
133         (WebCore::MediaStreamDescriptor::label):
134         (WebCore::MediaStreamDescriptor::component):
135         (WebCore::MediaStreamDescriptor::numberOfComponents):
136         (WebCore::MediaStreamDescriptor::ended):
137         (WebCore::MediaStreamDescriptor::setEnded):
138         (WebCore::MediaStreamDescriptor::MediaStreamDescriptor):
139         * platform/mediastream/MediaStreamSource.h: Added.
140         (WebCore::MediaStreamSource::create):
141         (WebCore::MediaStreamSource::id):
142         (WebCore::MediaStreamSource::type):
143         (WebCore::MediaStreamSource::name):
144         (WebCore::MediaStreamSource::muted):
145         (WebCore::MediaStreamSource::setMuted):
146         (WebCore::MediaStreamSource::MediaStreamSource):
147         * platform/mediastream/PeerHandler.cpp: Added.
148         (WebCore::PeerHandler::PeerHandler):
149         (WebCore::PeerHandler::~PeerHandler):
150         (WebCore::PeerHandler::produceInitialOffer):
151         (WebCore::PeerHandler::handleInitialOffer):
152         (WebCore::PeerHandler::processSDP):
153         (WebCore::PeerHandler::processPendingStreams):
154         (WebCore::PeerHandler::sendDataStreamMessage):
155         (WebCore::PeerHandler::stop):
156         * platform/mediastream/PeerHandler.h: Added.
157         (WebCore::PeerHandlerClient::~PeerHandlerClient):
158         (WebCore::PeerHandler::create):
159
160 2011-10-07  Vineet Chaudary  <vineet.chaudhary@motorola.com>
161
162         background-color affects the font color in disabled textarea.
163         https://bugs.webkit.org/show_bug.cgi?id=65361
164
165         Reviewed by Darin Adler.
166
167         For the transparent/translucent background colors use lightening fortext color.
168
169         * rendering/RenderTextControl.cpp:
170         (WebCore::disabledTextColor):
171
172 2011-10-07  David Barr  <davidbarr@chromium.org>
173
174         Implement currentColor support for box-shadow and text-shadow
175         https://bugs.webkit.org/show_bug.cgi?id=68218
176
177         Reviewed by Simon Fraser.
178
179         Test: fast/box-shadow/box-shadow-currentcolor.html
180
181         * css/CSSParser.cpp:
182         (WebCore::CSSParser::parseShadow): Add CSSValueCurrentcolor to supported keywords.
183
184 2011-10-07  Pavel Feldman  <pfeldman@google.com>
185
186         Web Inspector: add Audits panel to the compilation.
187         https://bugs.webkit.org/show_bug.cgi?id=69633
188
189         Reviewed by Yury Semikhatsky.
190
191         * inspector/compile-front-end.sh:
192         * inspector/front-end/AuditCategories.js:
193         * inspector/front-end/AuditLauncherView.js:
194         * inspector/front-end/AuditResultView.js:
195         * inspector/front-end/AuditRules.js:
196         (WebInspector.AuditRules.CombineExternalResourcesRule.prototype.doRun):
197         (WebInspector.AuditRules.MinimizeDnsLookupsRule.prototype.doRun):
198         (WebInspector.AuditRules.CacheControlRule.prototype.handleNonCacheableResources):
199         * inspector/front-end/AuditsPanel.js:
200         (WebInspector.AuditsPanel):
201         * inspector/front-end/NetworkLog.js:
202         * inspector/front-end/treeoutline.js:
203
204 2011-10-07  Andreas Kling  <kling@webkit.org>
205
206         Functions that return "const Color" should simply return "Color".
207
208         Rubber-stamped by Antti Koivisto.
209
210         * rendering/RenderLayerBacking.cpp:
211         (WebCore::RenderLayerBacking::rendererBackgroundColor):
212         * rendering/RenderLayerBacking.h:
213         * rendering/RenderTable.h:
214         (WebCore::RenderTable::bgColor):
215         * rendering/style/RenderStyle.cpp:
216         (WebCore::RenderStyle::colorIncludingFallback):
217         (WebCore::RenderStyle::visitedDependentColor):
218         * rendering/style/RenderStyle.h:
219
220 2011-10-07  Pavel Feldman  <pfeldman@google.com>
221
222         Web Inspector: TypeError: Cannot read property 'styleSheetId' of undefined in tests.
223         https://bugs.webkit.org/show_bug.cgi?id=69634
224
225         Reviewed by Yury Semikhatsky.
226
227         * inspector/front-end/CSSStyleModel.js:
228         (WebInspector.CSSStyleDeclaration.prototype.insertPropertyAt):
229
230 2011-10-06  Andreas Kling  <kling@webkit.org>
231
232         Shrink BorderValue.
233         https://bugs.webkit.org/show_bug.cgi?id=69521
234
235         Reviewed by Antti Koivisto.
236
237         Unroll BorderValue's Color member so we can pack the color's validity flag
238         in BorderValue's bitfield.
239
240         This shrinks BorderValue by 32 bit, which in turn shrinks BorderData by
241         16 bytes. This reduces memory consumption by 760 kB when loading the full
242         HTML5 spec.
243
244         * platform/graphics/Color.h:
245         (WebCore::Color::Color):
246
247             Allow construction of Color objects with specific validity.
248
249         * rendering/style/BorderValue.h:
250         (WebCore::BorderValue::BorderValue):
251         (WebCore::BorderValue::isTransparent):
252         (WebCore::BorderValue::operator==):
253         (WebCore::BorderValue::setColor):
254         (WebCore::BorderValue::color):
255         * rendering/style/OutlineValue.h:
256         (WebCore::OutlineValue::operator==):
257
258             Unroll m_color into BorderValue by splitting it into an RGBA32 and a bool.
259             Made those variables private and added color(), setColor() accessors.
260
261         * rendering/style/RenderStyle.h:
262         (WebCore::InheritedFlags::setBorderLeftColor):
263         (WebCore::InheritedFlags::setBorderRightColor):
264         (WebCore::InheritedFlags::setBorderTopColor):
265         (WebCore::InheritedFlags::setBorderBottomColor):
266         (WebCore::InheritedFlags::setOutlineColor):
267         (WebCore::InheritedFlags::setColumnRuleColor):
268
269             Added a SET_BORDERVALUE_COLOR macro and use that instead of SET_VAR
270             when setting BorderValue colors.
271
272         (WebCore::InheritedFlags::fillPaintColor):
273         (WebCore::InheritedFlags::strokePaintColor):
274         (WebCore::InheritedFlags::borderLeftColor):
275         (WebCore::InheritedFlags::borderRightColor):
276         (WebCore::InheritedFlags::borderTopColor):
277         (WebCore::InheritedFlags::borderBottomColor):
278         (WebCore::InheritedFlags::backgroundColor):
279         (WebCore::InheritedFlags::color):
280         (WebCore::InheritedFlags::columnRuleColor):
281         (WebCore::InheritedFlags::outlineColor):
282         (WebCore::InheritedFlags::textEmphasisColor):
283         (WebCore::InheritedFlags::textFillColor):
284         (WebCore::InheritedFlags::textStrokeColor):
285         (WebCore::InheritedFlags::stopColor):
286         (WebCore::InheritedFlags::floodColor):
287         (WebCore::InheritedFlags::lightingColor):
288
289             Made color getters return "Color" instead of "const Color&" since
290             BorderValue no longer has an actual object to return the reference to.
291
292         * css/CSSStyleApplyProperty.cpp:
293         (WebCore::ApplyPropertyColor::applyInheritValue):
294         * page/animation/AnimationBase.cpp:
295         (WebCore::PropertyWrapperColor::PropertyWrapperColor):
296         (WebCore::PropertyWrapperColor::blend):
297         (WebCore::PropertyWrapperMaybeInvalidColor::PropertyWrapperMaybeInvalidColor):
298         (WebCore::PropertyWrapperSVGPaint::PropertyWrapperSVGPaint):
299         (WebCore::AnimationBase::ensurePropertyMap):
300
301             Adapt to RenderStyle color getters now returning "Color" instead of
302             "const Color&".
303
304 2011-10-07  Philippe Normand  <pnormand@igalia.com>
305
306         [GStreamer] webkitwebsrc: avoid GST_BOILERPLATE_FULL
307         https://bugs.webkit.org/show_bug.cgi?id=69630
308
309         Reviewed by Martin Robinson.
310
311         Use G_DEFINE_TYPE_WITH_CODE instead of GST_BOILERPLATE_FULL and
312         replace use of gst_ghost_pad_new_no_target_from_template() and
313         gst_ghost_pad_set_target() with a single call to
314         gst_ghost_pad_new_from_template(). These changes keep the element
315         compatible with GStreamer 0.10 while preparing the port to 0.11.
316
317         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
318         (webkit_web_src_class_init):
319         (webkit_web_src_init):
320
321 2011-10-07  Martin Robinson  <mrobinson@igalia.com>
322
323         [Freetype] Pseudo-italics do not work
324         https://bugs.webkit.org/show_bug.cgi?id=40856
325
326         Reviewed by Philippe Normand.
327
328         * platform/graphics/freetype/FontPlatformData.h: Add the font description as an argument initializeWithFontFace.
329         * platform/graphics/freetype/FontPlatformDataFreeType.cpp:
330         (WebCore::FontPlatformData::FontPlatformData): Pass the font description to initializeWithFontFace.
331         (WebCore::FontPlatformData::initializeWithFontFace): If we were asked for an italic font and we were
332         given one that wasn't oblique or italic, activate the synthetic oblique bit.
333
334 2011-10-07  Philippe Normand  <pnormand@igalia.com>
335
336         [GStreamer] avoid direct access to GstMessage structure field
337         https://bugs.webkit.org/show_bug.cgi?id=69629
338
339         Reviewed by Martin Robinson.
340
341         Use gst_message_get_structure() instead of direct access to the
342         structure field. No direct benefit apart from compatibility with
343         GStreamer 0.11.
344
345         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
346         (WebCore::gstGWorldSyncMessageCallback):
347         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
348         (WebCore::MediaPlayerPrivateGStreamer::handleMessage):
349         (WebCore::MediaPlayerPrivateGStreamer::mediaLocationChanged):
350
351 2011-10-07  Pavel Feldman  <pfeldman@google.com>
352
353         Web Inspector: add timeline panel to the compilation.
354         https://bugs.webkit.org/show_bug.cgi?id=69628
355
356         Reviewed by Yury Semikhatsky.
357
358         * inspector/compile-front-end.sh:
359         * inspector/front-end/SidebarTreeElement.js:
360         (WebInspector.SidebarTreeElement):
361         * inspector/front-end/SourceCSSTokenizer.js:
362         (WebInspector.SourceCSSTokenizer.prototype.nextToken):
363         * inspector/front-end/SourceCSSTokenizer.re2js:
364         * inspector/front-end/SourceHTMLTokenizer.js:
365         (WebInspector.SourceHTMLTokenizer.prototype.nextToken):
366         * inspector/front-end/SourceHTMLTokenizer.re2js:
367         * inspector/front-end/SourceJavaScriptTokenizer.js:
368         (WebInspector.SourceJavaScriptTokenizer.prototype.nextToken):
369         * inspector/front-end/SourceJavaScriptTokenizer.re2js:
370         * inspector/front-end/TimelineGrid.js:
371         * inspector/front-end/TimelineOverviewPane.js:
372         (WebInspector.TimelineOverviewPane.prototype._createTimelineCategoryStatusBarCheckbox):
373         * inspector/front-end/TimelinePanel.js:
374         (WebInspector.TimelinePanel.prototype._createEventDivider):
375         (WebInspector.TimelinePanel.prototype._addRecordToTimeline):
376         (WebInspector.TimelinePanel.prototype._findParentRecord):
377         (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
378         (WebInspector.TimelinePanel.prototype.updateMainViewWidth):
379         (WebInspector.TimelinePanel.prototype.onResize):
380         (WebInspector.TimelinePanel.prototype._windowChanged):
381         (WebInspector.TimelinePanel.prototype._refreshRecords):
382         (WebInspector.TimelineRecordGraphRow.prototype._onClick):
383         (WebInspector.TimelinePanel.FormattedRecord):
384         (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
385         (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
386
387 2011-10-07  Sheriff Bot  <webkit.review.bot@gmail.com>
388
389         Unreviewed, rolling out r96892.
390         http://trac.webkit.org/changeset/96892
391         https://bugs.webkit.org/show_bug.cgi?id=69626
392
393         it broke windows canary bots (Requested by podivilov on
394         #webkit).
395
396         * WebCore.gyp/scripts/rule_binding.py:
397
398 2011-10-07  Andreas Kling  <kling@webkit.org>
399
400         Shrink StyleInheritedData.
401         https://bugs.webkit.org/show_bug.cgi?id=69625
402
403         Reviewed by Antti Koivisto.
404
405         Rearrange the members of StyleInheritedData to fold as much
406         as possible into the padding at the end of RefCounted.
407
408         This shrinks StyleInheritedData by 8 bytes on 64-bit, reducing
409         memory consumption by 500 kB when loading the full HTML5 spec.
410
411         * rendering/style/StyleInheritedData.cpp:
412         (WebCore::StyleInheritedData::StyleInheritedData):
413         * rendering/style/StyleInheritedData.h:
414
415 2011-10-07  Pavel Feldman  <pfeldman@google.com>
416
417         Web Inspector: make ScriptsPanel compile
418         https://bugs.webkit.org/show_bug.cgi?id=69623
419
420         Reviewed by Yury Semikhatsky.
421
422         * inspector/compile-front-end.sh:
423         * inspector/front-end/CallStackSidebarPane.js:
424         (WebInspector.CallStackSidebarPane.prototype.update):
425         (WebInspector.CallStackSidebarPane.prototype._placardSelected):
426         * inspector/front-end/DebuggerModel.js:
427         * inspector/front-end/JavaScriptSourceFrame.js:
428         (WebInspector.JavaScriptSourceFrame):
429         * inspector/front-end/KeyboardShortcut.js:
430         * inspector/front-end/Object.js:
431         * inspector/front-end/ObjectPropertiesSection.js:
432         * inspector/front-end/ScopeChainSidebarPane.js:
433         (WebInspector.ScopeChainSidebarPane.prototype.update):
434         * inspector/front-end/ScriptsPanel.js:
435         (WebInspector.ScriptsPanel.prototype._setScriptSourceIsBeingEdited):
436         (WebInspector.ScriptsPanel.prototype._createSourceFrame):
437         (WebInspector.ScriptsPanel.prototype._toggleBreakpointsClicked):
438         (WebInspector.SourceFrameDelegateForScriptsPanel):
439         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.requestContent):
440         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.debuggingSupported):
441         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.setBreakpoint):
442         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.updateBreakpoint):
443         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.removeBreakpoint):
444         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.findBreakpoint):
445         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.continueToLine):
446         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.canEditScriptSource):
447         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.setScriptSource):
448         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.setScriptSourceIsBeingEdited):
449         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.debuggerPaused):
450         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.evaluateInSelectedCallFrame):
451         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.releaseEvaluationResult):
452         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.suggestedFileName):
453         * inspector/front-end/StatusBarButton.js:
454         * inspector/front-end/WatchExpressionsSidebarPane.js:
455         (WebInspector.WatchExpressionsSection.prototype.update.appendResult):
456         (WebInspector.WatchExpressionsSection.prototype.update):
457         (WebInspector.WatchExpressionTreeElement.prototype.startEditing):
458         * inspector/front-end/WorkerManager.js:
459         (WebInspector.WorkerManager.prototype._openInspectorWindow):
460         (WebInspector.WorkerManager.prototype._pageInspectorClosing):
461         (WebInspector.DedicatedWorkerMessageForwarder.prototype._receiveMessage):
462         * inspector/front-end/WorkersSidebarPane.js:
463         (WebInspector.WorkersSidebarPane.prototype.removeWorker):
464         * inspector/front-end/externs.js:
465         (WebInspector.linkifyURL):
466         (InjectedFakeWorker):
467         * inspector/front-end/inspector.js:
468
469 2011-10-07  Sheriff Bot  <webkit.review.bot@gmail.com>
470
471         Unreviewed, rolling out r96879.
472         http://trac.webkit.org/changeset/96879
473         https://bugs.webkit.org/show_bug.cgi?id=69618
474
475         Broke CCLayerTreeHostTestShortlived1 on chromium mac.
476         (Requested by podivilov on #webkit).
477
478         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
479
480 2011-10-07  Pavel Feldman  <pfeldman@google.com>
481
482         Web Inspector: add ResourcesPanel to the compilation.
483         https://bugs.webkit.org/show_bug.cgi?id=69612
484
485         Reviewed by Yury Semikhatsky.
486
487         * inspector/compile-front-end.sh:
488         * inspector/front-end/ApplicationCacheItemsView.js:
489         (WebInspector.ApplicationCacheItemsView.prototype._populateDataGrid):
490         * inspector/front-end/NetworkPanel.js:
491         * inspector/front-end/ResourceView.js:
492         * inspector/front-end/ResourcesPanel.js:
493         (WebInspector.ResourcesPanel.prototype.showAnchorLocation):
494         (WebInspector.ResourcesPanel.prototype.showResource):
495         (WebInspector.BaseStorageTreeElement.prototype.isEventWithinDisclosureTriangle):
496         (WebInspector.FrameTreeElement.prototype.frameNavigated):
497         (WebInspector.StorageCategoryView):
498         (WebInspector.SearchResultsTreeElementsTraverser.prototype.last):
499         * inspector/front-end/externs.js:
500         (WebInspector.openRequestInNetworkPanel):
501
502 2011-10-07  Sheriff Bot  <webkit.review.bot@gmail.com>
503
504         Unreviewed, rolling out r96909.
505         http://trac.webkit.org/changeset/96909
506         https://bugs.webkit.org/show_bug.cgi?id=69616
507
508         Broke chromium mac compilation (Requested by podivilov on
509         #webkit).
510
511         * platform/graphics/chromium/ContentLayerChromium.h:
512
513 2011-10-07  Vsevolod Vlasov  <vsevik@chromium.org>
514
515         Web Inspector: Element highlighting does not highlight padding/border/margin for inline elements.
516         https://bugs.webkit.org/show_bug.cgi?id=69558
517
518         Reviewed by Pavel Feldman.
519
520         * inspector/DOMNodeHighlighter.cpp:
521
522 2011-10-07  Mario Sanchez Prada  <msanchez@igalia.com>
523
524         [GTK] Don't expose objects with unknown role on GTK
525         https://bugs.webkit.org/show_bug.cgi?id=69561
526
527         Reviewed by Chris Fleizach.
528
529         Ignore accessibility objects in accessibilityPlatformIncludesObject.
530
531         Test: platform/gtk/accessibility/unknown-roles-not-exposed.html
532
533         * accessibility/gtk/AccessibilityObjectAtk.cpp:
534         (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
535         For unknown accessibility objects, return IgnoreObject.
536
537 2011-10-07  Pavel Feldman  <pfeldman@chromium.org>
538
539         Web Inspector: add Elements and Network panels to the compilation
540         https://bugs.webkit.org/show_bug.cgi?id=69604
541
542         Reviewed by Yury Semikhatsky.
543
544         * inspector/compile-front-end.sh:
545         * inspector/front-end/BreakpointsSidebarPane.js:
546         (WebInspector.XHRBreakpointsSidebarPane.prototype._addButtonClicked):
547         (WebInspector.XHRBreakpointsSidebarPane.prototype._labelClicked):
548         * inspector/front-end/DOMAgent.js:
549         * inspector/front-end/DOMBreakpointsSidebarPane.js:
550         * inspector/front-end/DataGrid.js:
551         (WebInspector.DataGrid.prototype._startEditingConfig):
552         * inspector/front-end/Drawer.js:
553         * inspector/front-end/ElementsPanel.js:
554         (WebInspector.ElementsPanel.prototype._hideSearchHighlights):
555         (WebInspector.ElementsPanel.prototype.updateBreadcrumb):
556         (WebInspector.ElementsPanel.prototype.updateBreadcrumbSizes.collapseDimmed):
557         (WebInspector.ElementsPanel.prototype.updateBreadcrumbSizes):
558         (WebInspector.ElementsPanel.prototype._registerShortcuts):
559         * inspector/front-end/ElementsTreeOutline.js:
560         (WebInspector.ElementsTreeElement.prototype._startEditingAttribute):
561         (WebInspector.ElementsTreeElement.prototype._startEditingTextNode):
562         (WebInspector.ElementsTreeElement.prototype._startEditingTagName):
563         (WebInspector.ElementsTreeElement.prototype._startEditingAsHTML):
564         * inspector/front-end/GoToLineDialog.js:
565         (WebInspector.GoToLineDialog._show):
566         * inspector/front-end/MetricsSidebarPane.js:
567         (WebInspector.MetricsSidebarPane.prototype.startEditing):
568         * inspector/front-end/NetworkPanel.js:
569         (WebInspector.NetworkLogView.prototype._onLoadEventFired):
570         (WebInspector.NetworkLogView.prototype._domContentLoadedEventFired):
571         (WebInspector.NetworkLogView.prototype._updateOffscreenRows):
572         (WebInspector.NetworkLogView.prototype._removeAllNodeHighlights):
573         (WebInspector.NetworkPanel.prototype._resourceByAnchor):
574         (WebInspector.NetworkDataGridNode.prototype._refreshInitiatorCell):
575         * inspector/front-end/ObjectPropertiesSection.js:
576         (WebInspector.ObjectPropertyTreeElement.prototype.startEditing):
577         * inspector/front-end/Panel.js:
578         * inspector/front-end/Popover.js:
579         * inspector/front-end/SourceFrame.js:
580         (WebInspector.SourceFrame.prototype._editBreakpointCondition):
581         * inspector/front-end/StylesSidebarPane.js:
582         (WebInspector.StylePropertiesSection.prototype.startEditingSelector):
583         (WebInspector.StylePropertyTreeElement.prototype):
584         * inspector/front-end/TimelineGrid.js:
585         * inspector/front-end/UIUtils.js:
586         (WebInspector.EditingConfig):
587         (WebInspector.startEditing.editingCancelled):
588         (WebInspector.startEditing.editingCommitted):
589         (WebInspector.formatLocalized):
590         (WebInspector.openLinkExternallyLabel):
591         (WebInspector.openInNetworkPanelLabel):
592         (WebInspector.copyLinkAddressLabel):
593         * inspector/front-end/externs.js:
594         (WebInspector.extensionServer.notifyObjectSelected):
595         (WebInspector.openResource):
596         * inspector/front-end/inspector.js:
597         (WebInspector.resourceForURL):
598
599 2011-10-07  Anna Cavender  <annacc@chromium.org>
600
601         Change enum value names for TextTrack::readyState and TextTrack::mode
602         https://bugs.webkit.org/show_bug.cgi?id=69603
603
604         Reviewed by David Levin.
605
606         No new tests. No new functionality.
607
608         * html/LoadableTextTrack.cpp:
609         (WebCore::LoadableTextTrack::trackLoadStarted):
610         (WebCore::LoadableTextTrack::trackLoadError):
611         (WebCore::LoadableTextTrack::trackLoadCompleted):
612         * html/TextTrack.cpp:
613         (WebCore::TextTrack::TextTrack):
614         (WebCore::TextTrack::setMode):
615         * html/TextTrack.h:
616
617 2011-10-07  Anna Cavender  <annacc@chromium.org>
618
619         Adding parens in WebVTTParser.cpp to appease compiler preferences.
620         https://bugs.webkit.org/show_bug.cgi?id=69602
621
622         Reviewed by David Levin.
623
624         No new tests. No new functionality.
625
626         * html/track/WebVTTParser.cpp:
627         (WebCore::WebVTTParser::constructTreeFromToken):
628
629 2011-10-06  Antoine Labour  <piman@chromium.org>
630
631         Webkit API for compositor
632         https://bugs.webkit.org/show_bug.cgi?id=69107
633
634         Reviewed by Darin Fisher.
635
636         Covered by existing compositing tests.
637
638         * platform/graphics/chromium/ContentLayerChromium.h: 
639
640 2011-10-06  Kent Tamura  <tkent@chromium.org>
641
642         Remove SelectElement class
643         https://bugs.webkit.org/show_bug.cgi?id=69518
644
645         Reviewed by Ryosuke Niwa.
646
647         SelectElement used to be an abstract class for HTMLSelectElement
648         and WMLSelectElement. SelectElement is not needed anymore because
649         WML was removed.
650
651         This patch just removes SelectElement by moving SelectElement
652         functions to HTMLSelectElement.
653
654         No new tests. Just a refactoring.
655
656         * WebCore.vcproj/WebCore.vcproj:
657         Rename dom\SelectElementWin.cpp to html\HTMLSelectElementWin.cpp.
658         * accessibility/AccessibilityListBoxOption.cpp:
659         (WebCore::AccessibilityListBoxOption::setSelected):
660         Remove unnecessary cast.
661         * accessibility/AccessibilityRenderObject.cpp:
662         (WebCore::AccessibilityRenderObject::stringValue):
663         Use HTMLSelectElement instead of SelectElement.
664         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
665         (optionFromSelection): ditto.
666         (webkit_accessible_selection_get_selection_count): ditto.
667         * accessibility/gtk/AXObjectCacheAtk.cpp:
668         (notifyChildrenSelectionChange): ditto.
669         * dom/OptionElement.cpp:
670         (WebCore::OptionElement::optionIndex): ditto.
671         * dom/OptionElement.h: ditto.
672         * dom/SelectElement.cpp:
673         (WebCore::SelectElementData::checkListItems): ditto.
674         (WebCore::SelectElementData::listItems): ditto.
675         * dom/SelectElementWin.cpp: Removed.
676         * dom/SelectElement.h: Removed SelectElement class declaration.
677         * html/HTMLSelectElement.cpp: Move functions from SelectElement.cpp.
678         (WebCore::HTMLSelectElement::selectedIndex):
679         Removed 'SelectElement::' because the function is moved to HTMLSelectElement.
680         (WebCore::HTMLSelectElement::deselectItems): dito.
681         (WebCore::HTMLSelectElement::setSelectedIndex): dito.
682         (WebCore::HTMLSelectElement::setSelectedIndexByUser): ditto.
683         (WebCore::HTMLSelectElement::activeSelectionEndListIndex): ditto.
684         (WebCore::HTMLSelectElement::length): ditto.
685         (WebCore::HTMLSelectElement::saveFormControlState): ditto.
686         (WebCore::HTMLSelectElement::restoreFormControlState): ditto.
687         (WebCore::HTMLSelectElement::parseMappedAttribute): ditto.
688         (WebCore::HTMLSelectElement::selectAll): ditto.
689         (WebCore::HTMLSelectElement::appendFormData): ditto.
690         (WebCore::HTMLSelectElement::optionToListIndex): ditto.
691         (WebCore::HTMLSelectElement::listToOptionIndex): ditto.
692         (WebCore::HTMLSelectElement::recalcListItems): ditto.
693         (WebCore::HTMLSelectElement::setRecalcListItems): ditto.
694         (WebCore::HTMLSelectElement::reset): ditto.
695         (WebCore::HTMLSelectElement::dispatchFocusEvent): ditto.
696         (WebCore::HTMLSelectElement::dispatchBlurEvent): ditto.
697         (WebCore::HTMLSelectElement::defaultEventHandler): ditto.
698         (WebCore::HTMLSelectElement::setActiveSelectionAnchorIndex): ditto.
699         (WebCore::HTMLSelectElement::setActiveSelectionEndIndex): ditto.
700         (WebCore::HTMLSelectElement::updateListBoxSelection): ditto.
701         (WebCore::HTMLSelectElement::menuListOnChange): ditto.
702         (WebCore::HTMLSelectElement::listBoxOnChange): ditto.
703         (WebCore::HTMLSelectElement::saveLastSelection): ditto.
704         (WebCore::HTMLSelectElement::accessKeySetSelectedIndex): ditto.
705         (WebCore::HTMLSelectElement::scrollToSelection): ditto.
706         (WebCore::HTMLSelectElement::insertedIntoTree): ditto.
707         (WebCore::nextValidIndex): Moved from SelectElement.cpp.
708         (WebCore::nextSelectableListIndex): ditto.
709         (WebCore::previousSelectableListIndex): ditto.
710         (WebCore::firstSelectableListIndex): ditto.
711         (WebCore::lastSelectableListIndex): ditto.
712         (WebCore::nextSelectableListIndexPageAway): ditto.
713         (WebCore::HTMLSelectElement::setOptionsChangedOnRenderer): ditto.
714         (WebCore::HTMLSelectElement::parseMultipleAttribute): ditto.
715         (WebCore::HTMLSelectElement::platformHandleKeydownEvent): ditto.
716         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): ditto.
717         (WebCore::HTMLSelectElement::updateSelectedState): ditto.
718         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): ditto.
719         (WebCore::HTMLSelectElement::lastSelectedListIndex): ditto.
720         (WebCore::stripLeadingWhiteSpace): ditto.
721         (WebCore::HTMLSelectElement::typeAheadFind): ditto.
722         (WebCore::HTMLSelectElement::optionCount): ditto.
723         (WebCore::toSelectElement): ditto.
724         * html/HTMLSelectElementWin.cpp: Copied from Source/WebCore/dom/SelectElementWin.cpp.
725         (WebCore::HTMLSelectElement::platformHandleKeydownEvent):
726         * html/HTMLSelectElement.h: Removed 'virtual' of SelectElement functions.
727         (WebCore::HTMLSelectElement::size):
728         (WebCore::HTMLSelectElement::multiple):
729         (WebCore::HTMLSelectElement::listItems):
730         (WebCore::HTMLSelectElement::updateValidity):
731         * rendering/RenderListBox.cpp: Replace SelectElement with HTMLSelectElement
732         (WebCore::RenderListBox::RenderListBox):
733         (WebCore::RenderListBox::scrollToRevealSelection):
734         (WebCore::RenderListBox::addFocusRingRects):
735         (WebCore::RenderListBox::paintItemForeground):
736         (WebCore::RenderListBox::paintItemBackground):
737         (WebCore::RenderListBox::panScroll):
738         (WebCore::RenderListBox::autoscroll):
739         (WebCore::RenderListBox::valueChanged):
740         * rendering/RenderMenuList.cpp: Replace SelectElement with HTMLSelectElement
741         (WebCore::RenderMenuList::RenderMenuList):
742         (WebCore::RenderMenuList::setTextFromOption):
743         (WebCore::RenderMenuList::showPopup):
744         (WebCore::RenderMenuList::valueChanged):
745         (WebCore::RenderMenuList::listBoxSelectItem):
746         (WebCore::RenderMenuList::multiple):
747         (WebCore::RenderMenuList::didSetSelectedIndex):
748         (WebCore::RenderMenuList::didUpdateActiveOption):
749         (WebCore::RenderMenuList::itemText):
750         (WebCore::RenderMenuList::itemAccessibilityText):
751         (WebCore::RenderMenuList::itemToolTip):
752         (WebCore::RenderMenuList::itemIsEnabled):
753         (WebCore::RenderMenuList::itemStyle):
754         (WebCore::RenderMenuList::itemBackgroundColor):
755         (WebCore::RenderMenuList::listSize):
756         (WebCore::RenderMenuList::selectedIndex):
757         (WebCore::RenderMenuList::itemIsSeparator):
758         (WebCore::RenderMenuList::itemIsLabel):
759         (WebCore::RenderMenuList::itemIsSelected):
760         (WebCore::RenderMenuList::setTextFromItem):
761
762 2011-10-06  Sheriff Bot  <webkit.review.bot@gmail.com>
763
764         Unreviewed, rolling out r96896.
765         http://trac.webkit.org/changeset/96896
766         https://bugs.webkit.org/show_bug.cgi?id=69601
767
768         broke windows and mac chromium builds (Requested by simonjam
769         on #webkit).
770
771         * platform/graphics/chromium/ContentLayerChromium.h:
772
773 2011-10-06  Antoine Labour  <piman@chromium.org>
774
775         Webkit API for compositor
776         https://bugs.webkit.org/show_bug.cgi?id=69107
777
778         Reviewed by Darin Fisher.
779
780         Covered by existing compositing tests.
781
782         * platform/graphics/chromium/ContentLayerChromium.h: 
783
784 2011-10-06  Joseph Pecoraro  <joepeck@webkit.org>
785
786         Reviewed by Kent Tamura.
787
788         Pass "accept" mime type information into FileChooser at all call sites
789         https://bugs.webkit.org/show_bug.cgi?id=69592
790
791         No new tests. This only exposes some more information to
792         WebKit ports, no functionality change in WebCore.
793
794         * html/FileInputType.cpp:
795         (WebCore::FileInputType::receiveDropForDirectoryUpload):
796
797 2011-10-06  Kent Tamura  <tkent@chromium.org>
798
799         [JSC binding] Fix inconsistent behavior of DOMStringMap
800         https://bugs.webkit.org/show_bug.cgi?id=53752
801
802         Reviewed by Darin Adler.
803
804         The dataset behavior was inconsistent. The get operation handled
805         data-* attributes first, and the put and delete operations handled
806         JavaScript properties first.
807
808         Like Firefox and Opera, the put and delete operations should
809         handle data-* attribute first.
810
811         * bindings/js/JSDOMStringMapCustom.cpp:
812         (WebCore::JSDOMStringMap::deleteProperty):
813          Handles DOMStringMap first, then returns false if the DOMStringMap makes an error.
814         (WebCore::JSDOMStringMap::putDelegate): ditto.
815
816 2011-10-06  Nico Weber  <thakis@chromium.org>
817
818         [chromium] Let rule_binding use os.execvp() instead of subprocess.call() to spawn fewer processes.
819         https://bugs.webkit.org/show_bug.cgi?id=69589
820
821         Reviewed by Adam Barth.
822
823         When building with `make -j40`, all the binding rules are built en bloc. Since this script currently
824         uses subprocess.call(), that actually spawns 80 processes at once. OS X has a max process limit of
825         255 by default, so the build used to fail with
826         "open2: fork failed: Resource temporarily unavailable at ../bindings/scripts/preprocessor.pm line 60"
827         As a fix, use execvp() instead, which replaces the current process instead of spawning a new one.
828
829         * WebCore.gyp/scripts/rule_binding.py:
830
831 2011-10-06  Anders Carlsson  <andersca@apple.com>
832
833         When building with clang, enable -Wglobal-constructors and -Wexit-time-destructors
834         https://bugs.webkit.org/show_bug.cgi?id=69586
835
836         Reviewed by Darin Adler.
837
838         * Configurations/Base.xcconfig:
839         Add -Wglobal-constructors and -Wexit-time-destructors when building with clang.
840         
841         * WebCore.xcodeproj/project.pbxproj:
842         When building with clang, we don't need to run the check-for-global-initializers and
843         check-for-exit-time-destructors anymore.
844         
845         * platform/graphics/filters/FEGaussianBlur.cpp:
846         (gaussianKernelFactor):
847         (WebCore::FEGaussianBlur::calculateKernelSize):
848         (WebCore::FEGaussianBlur::calculateStdDeviation):
849         Change the gaussian kernel factor global to be an inline function instead.
850
851 2011-10-06  Anders Carlsson  <andersca@apple.com>
852
853         Add DEFINE_DEBUG_ONLY_GLOBAL for globals that should be defined in debug builds
854         https://bugs.webkit.org/show_bug.cgi?id=69584
855
856         Reviewed by Darin Adler.
857
858         Adopt the DEFINE_DEBUG_ONLY_GLOBAL macro.
859
860         * bindings/js/JSLazyEventListener.cpp:
861         * dom/Node.cpp:
862         * dom/Range.cpp:
863         * history/CachedPage.cpp:
864         * loader/SubresourceLoader.cpp:
865         * loader/cache/CachedResource.cpp:
866         * page/Frame.cpp:
867         * page/Page.cpp:
868         * rendering/BidiRun.cpp:
869         * rendering/RenderObject.cpp:
870         * svg/SVGElementInstance.cpp:
871         * xml/XMLHttpRequest.cpp:
872
873 2011-10-06  James Robinson  <jamesr@chromium.org>
874
875         [chromium] Remove USE(THREADED_COMPOSITING) from the tree
876         https://bugs.webkit.org/show_bug.cgi?id=69489
877
878         Reviewed by Darin Fisher.
879
880         This macro isn't needed any more since the logic it guarded is guarded by a runtime switch.
881
882         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
883
884 2011-10-06  David Grogan  <dgrogan@chromium.org>
885
886         Return null for the value of IDB key cursors instead of ASSERTing
887         https://bugs.webkit.org/show_bug.cgi?id=69131
888         
889         This is in support of the IndexedDB performance improvement here:
890         http://codereview.chromium.org/7834006/
891
892         Reviewed by Tony Chang.
893
894         * storage/IDBCursorBackendImpl.cpp:
895         (WebCore::IDBCursorBackendImpl::value):
896
897 2011-10-06  Alexey Proskuryakov  <ap@apple.com>
898
899         [Mac] Should be able to scroll embedded PDFs using mouse
900         https://bugs.webkit.org/show_bug.cgi?id=69579
901
902         Reviewed by Darin Adler.
903
904         Hit testing doesn't find scrollbars installed by a plug-in, so mouse events don't work.
905
906         As we want to use WebKit scrollbars with PDF plug-in, a cleaner long-term solution would be
907         to have a base class under PluginViewBase that can handle scrolling instead of doing that
908         in PluginView and Plugin.
909
910         * plugins/PluginViewBase.h:
911         (WebCore::PluginViewBase::horizontalScrollbar):
912         (WebCore::PluginViewBase::verticalScrollbar):
913         Added accessors for scrollbars installed by plug-in.
914
915         * rendering/nodeAtPoint.cpp: (WebCore::RenderEmbeddedObject::nodeAtPoint):
916         Like RenderLayer, add scrollbars to hit result after normal  hit testing.
917
918         * rendering/RenderEmbeddedObject.h: Added a nodeAtPoint override.
919
920         * rendering/RenderWidget.h: Made nodeAtPoint() protected instead of private, so that
921         RenderEmbeddedObject could call it.
922
923 2011-10-06  Dan Bernstein  <mitz@apple.com>
924
925         <rdar://problem/9717490> Flash of white when navigating daringfireball.net
926         https://bugs.webkit.org/show_bug.cgi?id=69581
927
928         Reviewed by Darin Adler.
929
930         * platform/ScrollView.cpp:
931         (WebCore::ScrollView::updateScrollbars): Moved the calls to Scrollbar::setEnabled() into the code
932         section where invalidation is suppressed if necessary, so that they do not trigger premature invalidation.
933
934 2011-10-06  Dan Bernstein  <mitz@apple.com>
935
936         Added a comment explaining code added in r96834.
937
938         Suggested by Darin Adler.
939
940         * editing/FrameSelection.cpp:
941         (WebCore::FrameSelection::updateAppearance):
942
943 2011-10-05  Ryosuke Niwa  <rniwa@webkit.org>
944
945         Deleting line break before h1 converts h1 to span
946         https://bugs.webkit.org/show_bug.cgi?id=45784
947
948         Reviewed by Enrica Casucci.
949
950         This patch fundamentally alters the kind of styles we preserve while merging or moving paragraphs.
951         StylizedMarkupAccumulator no longer wraps nodes by computed style when it's not annotating for interchange.
952         Instead, it accumulates implicit and inline styles of ancestors of the serialized contents.
953
954         The most significant code change is in StyledMarkupAccumulator::serializeNodes where we setup m_wrappingStyle
955         by merging implicit and inline style of ancestors with mergeInlineAndImplicitStyleOfElement. Because it walks up
956         the DOM tree upwards, it should not be overriding any CSS properties. Consequently, mergeStyle,
957         mergeInlineStyleOfElement, and mergeInlineAndImplicitStyleOfElement are modified to take CSSPropertyOverrideMode.
958
959         New behavior matches that of Internet Explorer and Firefox when merging paragraphs.
960
961         Tests: editing/deleting/merge-paragraph-from-address.html
962                editing/deleting/merge-paragraph-from-h6-with-style-2.html
963                editing/deleting/merge-paragraph-from-h6-with-style.html
964                editing/deleting/merge-paragraph-from-h6.html
965                editing/deleting/merge-paragraph-from-listing.html
966                editing/deleting/merge-paragraph-from-p-with-style-2.html
967                editing/deleting/merge-paragraph-from-p-with-style-3.html
968                editing/deleting/merge-paragraph-from-p-with-style.html
969                editing/deleting/merge-paragraph-into-h1-with-style.html
970                editing/deleting/merge-paragraph-into-h1.html
971                editing/deleting/merge-paragraph-into-pre.html
972
973         * css/CSSValueList.cpp:
974         (WebCore::CSSValueList::hasValue): Made const.
975         * css/CSSValueList.h:
976         * editing/ApplyStyleCommand.cpp:
977         (WebCore::ApplyStyleCommand::removeInlineStyleFromElement): Calls mergeInlineStyleOfElement.
978         (WebCore::ApplyStyleCommand::applyInlineStyleToPushDown): Ditto.
979         * editing/EditingStyle.cpp:
980         (WebCore::copyEditingProperties): Takes a boolean includeBackgroundColor.
981         (WebCore::isEditingProperty): Extracted from elementIsStyledSpanOrHTMLEquivalent.
982         (WebCore::EditingStyle::elementIsStyledSpanOrHTMLEquivalent): Calls isEditingProperty.
983         (WebCore::EditingStyle::mergeTypingStyle): Calls mergeStyle.
984         (WebCore::EditingStyle::mergeInlineStyleOfElement): Takes CSSPropertyOverrideMode.
985         (WebCore::elementMatchesAndPropertyIsNotInInlineStyleDecl): Added.
986         (WebCore::EditingStyle::mergeInlineAndImplicitStyleOfElement): Added.
987         (WebCore::mergeTextDecorationValues): Extracted from mergeStyle.
988         (WebCore::EditingStyle::mergeStyle): Takes CSSPropertyOverrideMode.
989         * editing/EditingStyle.h:
990         * editing/ReplaceSelectionCommand.cpp:
991         (WebCore::nodeToSplitToAvoidPastingIntoInlineNodesWithStyle): Extracted from doApply.
992         (WebCore::ReplaceSelectionCommand::doApply): Calls nodeToSplitToAvoidPastingIntoInlineNodesWithStyle.
993         (WebCore::ReplaceSelectionCommand::performTrivialReplace): Exit early when we need to split the tree to avoid
994         pasting into inline nodes with style. Also remove a collapsed or spurious br.
995         * editing/markup.cpp:
996         (WebCore::StyledMarkupAccumulator::serializeNodes):
997
998 2011-10-06  Abhishek Arya  <inferno@chromium.org>
999
1000         Crash in VisiblePosition::canonicalPosition.
1001         https://bugs.webkit.org/show_bug.cgi?id=69568
1002
1003         Reviewed by Ryosuke Niwa.
1004
1005         Move the position's containerNode calculation after layout is
1006         complete(in updateLayoutIgnorePendingStylesheets).        
1007
1008         Test: editing/selection/selection-plugin-clear-crash.html
1009
1010         * editing/VisiblePosition.cpp:
1011         (WebCore::VisiblePosition::canonicalPosition):
1012
1013 2011-10-06  Sheriff Bot  <webkit.review.bot@gmail.com>
1014
1015         Unreviewed, rolling out r96861.
1016         http://trac.webkit.org/changeset/96861
1017         https://bugs.webkit.org/show_bug.cgi?id=69573
1018
1019         This patch didn't compile on windows (Requested by annacc on
1020         #webkit).
1021
1022         * html/track/WebVTTParser.cpp:
1023         (WebCore::WebVTTParser::constructTreeFromToken):
1024
1025 2011-10-06  Anna Cavender  <annacc@chromium.org>
1026
1027         Adding parens in WebVTTParser.cpp to appease compiler preferences.
1028         https://bugs.webkit.org/show_bug.cgi?id=69460
1029
1030         Reviewed by David Levin.
1031
1032         No new tests. No new functionality.
1033
1034         * html/track/WebVTTParser.cpp:
1035         (WebCore::WebVTTParser::constructTreeFromToken):
1036
1037 2011-10-06  Fady Samuel  <fsamuel@chromium.org>
1038
1039         Code clean-up: Make RenderObject::absoluteBoundingBoxRect and associated methods const and make its parameter useTransforms no longer default to false
1040         https://bugs.webkit.org/show_bug.cgi?id=69009
1041
1042         Reviewed by Simon Fraser.
1043
1044         Upcoming patches may make use of absoluteBoundingBoxRect on a const RenderObject, so this needed to be fixed.
1045         Making useTransforms default to true instead of false and replacing instances of absoluteBoundingBoxRect() to
1046         absoluteBoundingBoxRectIgnoringTransforms() partially addreses // FIXME: useTransforms should go away eventually.
1047
1048         * WebCore.exp.in:
1049         * dom/Element.cpp:
1050         (WebCore::Element::screenRect):
1051         * dom/Node.cpp:
1052         (WebCore::Node::getRect):
1053         (WebCore::Node::renderRect):
1054         * html/shadow/SliderThumbElement.cpp:
1055         (WebCore::SliderThumbElement::setPositionFromPoint):
1056         * html/shadow/TextControlInnerElements.cpp:
1057         (WebCore::InputFieldSpeechButtonElement::startSpeechInput):
1058         * inspector/DOMNodeHighlighter.cpp:
1059         * plugins/IFrameShimSupport.cpp:
1060         (WebCore::getPluginOcclusions):
1061         * rendering/RenderBlock.cpp:
1062         (WebCore::RenderBlock::absoluteRects):
1063         (WebCore::RenderBlock::absoluteQuads):
1064         * rendering/RenderBlock.h:
1065         * rendering/RenderBox.cpp:
1066         (WebCore::RenderBox::absoluteRects):
1067         (WebCore::RenderBox::absoluteQuads):
1068         * rendering/RenderBox.h:
1069         * rendering/RenderFileUploadControl.cpp:
1070         (WebCore::RenderFileUploadControl::paintObject):
1071         * rendering/RenderIFrame.cpp:
1072         (WebCore::RenderIFrame::flattenFrame):
1073         * rendering/RenderInline.cpp:
1074         (WebCore::RenderInline::absoluteRects):
1075         (WebCore::RenderInline::culledInlineAbsoluteRects):
1076         (WebCore::RenderInline::absoluteQuads):
1077         (WebCore::RenderInline::culledInlineAbsoluteQuads):
1078         * rendering/RenderInline.h:
1079         * rendering/RenderMenuList.cpp:
1080         (WebCore::RenderMenuList::showPopup):
1081         * rendering/RenderObject.cpp:
1082         (WebCore::RenderObject::absoluteBoundingBoxRect):
1083         (WebCore::RenderObject::addAbsoluteRectForLayer):
1084         (WebCore::RenderObject::paintingRootRect):
1085         * rendering/RenderObject.h:
1086         (WebCore::RenderObject::absoluteRects):
1087         (WebCore::RenderObject::absoluteBoundingBoxRectIgnoringTransforms):
1088         (WebCore::RenderObject::absoluteQuads):
1089         * rendering/RenderText.cpp:
1090         (WebCore::RenderText::absoluteRects):
1091         (WebCore::RenderText::absoluteQuads):
1092         * rendering/RenderText.h:
1093         * rendering/RenderTextControlSingleLine.cpp:
1094         (WebCore::RenderTextControlSingleLine::showPopup):
1095         * rendering/RenderThemeSafari.cpp:
1096         (WebCore::RenderThemeSafari::paintSearchFieldCancelButton):
1097         (WebCore::RenderThemeSafari::paintSearchFieldResultsDecoration):
1098         (WebCore::RenderThemeSafari::paintSearchFieldResultsButton):
1099         * rendering/RenderView.cpp:
1100         (WebCore::RenderView::absoluteRects):
1101         (WebCore::RenderView::absoluteQuads):
1102         * rendering/RenderView.h:
1103         * rendering/svg/RenderSVGBlock.cpp:
1104         (WebCore::RenderSVGBlock::absoluteRects):
1105         * rendering/svg/RenderSVGBlock.h:
1106         * rendering/svg/RenderSVGHiddenContainer.cpp:
1107         (WebCore::RenderSVGHiddenContainer::absoluteQuads):
1108         * rendering/svg/RenderSVGHiddenContainer.h:
1109         * rendering/svg/RenderSVGInline.cpp:
1110         (WebCore::RenderSVGInline::absoluteQuads):
1111         * rendering/svg/RenderSVGInline.h:
1112         * rendering/svg/RenderSVGModelObject.cpp:
1113         (WebCore::RenderSVGModelObject::absoluteRects):
1114         (WebCore::RenderSVGModelObject::absoluteQuads):
1115         * rendering/svg/RenderSVGModelObject.h:
1116         * rendering/svg/RenderSVGText.cpp:
1117         (WebCore::RenderSVGText::absoluteQuads):
1118         * rendering/svg/RenderSVGText.h:
1119         * testing/Internals.cpp:
1120         (WebCore::Internals::boundingBox):
1121
1122 2011-10-06  Simon Hausmann  <simon.hausmann@nokia.com>
1123
1124         [Qt][Wk2] Fix build with Qt 5 when QtScript is built as standalone module
1125         https://bugs.webkit.org/show_bug.cgi?id=69520
1126
1127         Reviewed by Csaba Osztrogonác.
1128
1129         * WebCore.pri: Use qt5 scope.
1130         * WebCore.pro: Use qt5 scope and pull in QtScript for the time being.
1131
1132 2011-10-06  Tony Chang  <tony@chromium.org>
1133
1134         last frame of a multipart response is not displayed
1135         https://bugs.webkit.org/show_bug.cgi?id=69449
1136
1137         Reviewed by Adam Barth.
1138
1139         Test: http/tests/multipart/load-last-non-html-frame.php
1140
1141         * loader/DocumentLoader.cpp:
1142         (WebCore::DocumentLoader::maybeFinishLoadingMultipartContent): for non-progressive load pages, commit the load so the
1143             last frame will be displayed.
1144         * loader/DocumentLoader.h:
1145         * loader/MainResourceLoader.cpp:
1146         (WebCore::MainResourceLoader::didFinishLoading):
1147
1148 2011-10-06  Gavin Peters  <gavinp@chromium.org>
1149
1150         conditionalize m_cachedScript stacks to just Chromium port
1151         https://bugs.webkit.org/show_bug.cgi?id=69537
1152
1153         New stack saving telemetry code in ScriptElement shouldn't have
1154         been put in all ports; just narrowing it to the chromium port will
1155         save other ports the memory hit of this diagnostic code.
1156
1157         Reviewed by Nate Chapin.
1158
1159         No new tests.
1160
1161         * dom/ScriptElement.cpp:
1162         (WebCore::ScriptElement::ScriptElement):
1163         (WebCore::ScriptElement::requestScript):
1164         (WebCore::ScriptElement::stopLoadRequest):
1165         (WebCore::ScriptElement::notifyFinished):
1166         * dom/ScriptElement.h:
1167
1168 2011-10-06  Arthur Hsu  <arthurhsu@chromium.org>
1169
1170         Ensure font loaded before calling Skia to drawPosText in Chrome sandbox
1171         https://bugs.webkit.org/show_bug.cgi?id=69370
1172
1173         Reviewed by James Robinson.
1174
1175         * platform/graphics/chromium/FontChromiumWin.cpp:
1176         (WebCore::Font::drawGlyphs):
1177
1178 2011-10-06  Chris Rogers  <crogers@google.com>
1179
1180         BiquadFilterNode must not reset filter state if type attribute is set to the same type
1181         https://bugs.webkit.org/show_bug.cgi?id=69485
1182
1183         Reviewed by Kenneth Russell.
1184
1185         No new tests.  This particular case is difficult to test with a layout test using OfflineAudioContext.
1186
1187         * webaudio/BiquadProcessor.cpp:
1188         (WebCore::BiquadProcessor::setType):
1189         * webaudio/BiquadProcessor.h:
1190
1191 2011-10-06  Raphael Kubo da Costa  <kubo@profusion.mobi>
1192
1193         [EFL] Do not create cairo surfaces with the wrong size for form elements
1194         https://bugs.webkit.org/show_bug.cgi?id=69533
1195
1196         Reviewed by Ryosuke Niwa.
1197
1198         RenderThemeEfl::cacheThemePartResizeAndReset resizes the Ecore_Evas
1199         associated with an entry, but did not reset the `size` attribute of the
1200         struct -- in practice, this meant the subsequent call to
1201         themePartCacheEntrySurfaceCreate would create a cairo surface with the
1202         previous size, thus rendering an element with the wrong size.
1203
1204         No new tests, this is triggered by running running pixel tests for
1205         running, in this order, fast/forms/button-sizes.html,
1206         fast/forms/input-appearance-preventDefault.html,
1207         fast/forms/input-appearance-spinbutton-disabled-readonly.html,
1208         fast/forms/input-appearance-width.html,
1209         fast/forms/input-button-sizes.html,
1210         fast/forms/input-placeholder-text-indent.html and
1211         fast/forms/input-text-click-inside.html (!).
1212
1213         * platform/efl/RenderThemeEfl.cpp:
1214         (WebCore::RenderThemeEfl::cacheThemePartResizeAndReset): Reset the
1215         size attribute when resizing the canvas.
1216
1217 2011-10-06  Chris Rogers  <crogers@google.com>
1218
1219         Make sure OfflineAudioContext can not be created with a sample-rate less than 44.1KHz
1220         https://bugs.webkit.org/show_bug.cgi?id=69483
1221
1222         Reviewed by Kenneth Russell.
1223
1224         No new tests.
1225
1226         * webaudio/AudioBuffer.cpp:
1227         (WebCore::AudioBuffer::create):
1228         * webaudio/AudioContext.cpp:
1229         (WebCore::AudioContext::createBuffer):
1230
1231 2011-10-06  David Hyatt  <hyatt@apple.com>
1232
1233         https://bugs.webkit.org/show_bug.cgi?id=69544
1234         
1235         [CSS3 Regions] Compute the starting and ending regions of a block, so that we can clamp
1236         descendants to those regions. This is preparation for having true overflow in the boxes
1237         in each region, and it's also a performance optimization to reduce the amount of
1238         region walking that the RenderFlowThread is doing.
1239
1240         Add a range map to RenderFlowThread to cache the start/end regions for each box.
1241         
1242         Amend everyone who calls renderRegionForLine to pass in the box that is making the query.
1243         This box is then used to clamp to start and end regions so that any regions outside of that
1244         range will never be examined.
1245
1246         Reviewed by Dan Bernstein.
1247
1248         Test: fast/regions/top-overflow-out-of-second-region.html
1249
1250         * rendering/RenderBlock.cpp:
1251         (WebCore::RenderBlock::layoutBlock):
1252         (WebCore::RenderBlock::hasNextPage):
1253         (WebCore::RenderBlock::pageLogicalHeightForOffset):
1254         (WebCore::RenderBlock::pageRemainingLogicalHeightForOffset):
1255         (WebCore::RenderBlock::regionAtBlockOffset):
1256         * rendering/RenderFlowThread.cpp:
1257         (WebCore::RenderFlowThread::~RenderFlowThread):
1258         (WebCore::RenderFlowThread::layout):
1259         (WebCore::RenderFlowThread::renderRegionForLine):
1260         (WebCore::RenderFlowThread::regionLogicalWidthForLine):
1261         (WebCore::RenderFlowThread::regionLogicalHeightForLine):
1262         (WebCore::RenderFlowThread::regionRemainingLogicalHeightForLine):
1263         (WebCore::RenderFlowThread::mapFromFlowToRegion):
1264         (WebCore::RenderFlowThread::removeRenderBoxRegionInfo):
1265         (WebCore::RenderFlowThread::logicalWidthChangedInRegions):
1266         (WebCore::RenderFlowThread::setRegionRangeForBox):
1267         (WebCore::RenderFlowThread::getRegionRangeForBox):
1268         * rendering/RenderFlowThread.h:
1269         * rendering/RenderRegion.cpp:
1270         (WebCore::RenderRegion::takeRenderBoxRegionInfo):
1271         (WebCore::RenderRegion::removeRenderBoxRegionInfo):
1272         * rendering/RenderRegion.h:
1273
1274 2011-10-05  Gavin Barraclough  <barraclough@apple.com>
1275
1276         Add explicit JSGlobalThis type.
1277         https://bugs.webkit.org/show_bug.cgi?id=69478
1278
1279         Reviewed by Darin Adler.
1280
1281         JSC supports a split global object, as used by WebCore for the Window. As a stage
1282         of making this visible to JSC, make it so that if the global this value is not the
1283         global object itself, it must be a subclass of JSGlobalThis.
1284
1285         * ForwardingHeaders/runtime/JSGlobalThis.h: Added.
1286             - Added forwarding header.
1287         * bindings/js/JSDOMGlobalObject.cpp:
1288         (WebCore::JSDOMGlobalObject::finishCreation):
1289         * bindings/js/JSDOMGlobalObject.h:
1290             - finishCreation takes a JSGlobalThis, or thisValue is implicit.
1291         * bindings/js/JSDOMWindowShell.h:
1292             - Make the window shell a subclass of JSGlobalThis.
1293         * bindings/js/JSWorkerContextBase.cpp:
1294         (WebCore::JSWorkerContextBase::finishCreation):
1295             - Don't pass the thisValue to JSGlobalObject::finishCreation.
1296         * bindings/js/JSWorkerContextBase.h:
1297         * bindings/scripts/CodeGeneratorJS.pm:
1298         (GenerateHeader):
1299             - Don't pass the thisValue to JSGlobalObject::finishCreation,
1300               for worker contexts.
1301
1302 2011-10-06  Anna Cavender  <annacc@chromium.org>
1303
1304         Fix CodeGeneratorV8 for EnabledAtRuntime when class has no parent class.
1305         https://bugs.webkit.org/show_bug.cgi?id=69480
1306
1307         Reviewed by Adam Barth.
1308
1309         No new tests. No new functionality, yet.
1310
1311         * bindings/scripts/CodeGeneratorV8.pm:
1312
1313 2011-10-06  Dan Bernstein  <mitz@apple.com>
1314
1315         <rdar://problem/10232866> Assertion failure beneath blockSelectionGaps() when a selected node is removed
1316
1317         Reviewed by Ryosuke Niwa.
1318
1319         Test: editing/selection/invalid-in-RenderView.html
1320
1321         * editing/FrameSelection.cpp:
1322         (WebCore::FrameSelection::updateAppearance): Ensure that the VisibleSelection used to set the selection
1323         in the RenderView is valid, by reconstructing it from the current selection.
1324
1325 2011-10-06  Andreas Kling  <kling@webkit.org>
1326
1327         InlineBox's virtualLogicalHeight() partially limited to builds with SVG.
1328         https://bugs.webkit.org/show_bug.cgi?id=69538
1329
1330         Reviewed by Dan Bernstein.
1331
1332         Remove erroneous ENABLE(SVG) guards around the initialization and use
1333         of InlineBox::hasVirtualLogicalHeight.
1334
1335         This variable is used by TrailingFloatsRootInlineBox and should always
1336         be respected regardless of SVG support.
1337
1338         * rendering/InlineBox.cpp:
1339         (WebCore::InlineBox::logicalHeight):
1340         * rendering/InlineBox.h:
1341         (WebCore::InlineBox::InlineBox):
1342
1343 2011-10-06  Carlos Garcia Campos  <cgarcia@igalia.com>
1344
1345         [GTK] Implement cache model for WebKit2
1346         https://bugs.webkit.org/show_bug.cgi?id=68434
1347
1348         Reviewed by Martin Robinson.
1349
1350         Add a function to FileSystem to get the free space of the file
1351         system where the given path is on.
1352
1353         * platform/FileSystem.h:
1354         * platform/gtk/FileSystemGtk.cpp:
1355         (WebCore::getVolumeFreeSizeForPath):
1356
1357 2011-10-06  Sergey Glazunov  <serg.glazunov@gmail.com>
1358
1359         Add check for JavaScript URLs in HTMLPlugInImageElement::allowedToLoadFrameURL
1360         https://bugs.webkit.org/show_bug.cgi?id=68813
1361
1362         Reviewed by Adam Barth.
1363
1364         Test: http/tests/security/xss-DENIED-object-element.html
1365
1366         * html/HTMLPlugInImageElement.cpp:
1367         (WebCore::HTMLPlugInImageElement::allowedToLoadFrameURL):
1368
1369 2011-10-06  Yury Semikhatsky  <yurys@chromium.org>
1370
1371         Web Inspector: avoid assertion failure in ~InspectorDebuggerAgent in case of workers
1372         https://bugs.webkit.org/show_bug.cgi?id=69534
1373
1374         Make sure frontend is disconnected before WorkerInspectorController is destroyed.
1375
1376         Reviewed by Pavel Feldman.
1377
1378         * inspector/WorkerInspectorController.cpp:
1379         (WebCore::WorkerInspectorController::~WorkerInspectorController):
1380
1381 2011-10-05  Alexey Proskuryakov  <ap@apple.com>
1382
1383         https://bugs.webkit.org/show_bug.cgi?id=69492
1384         [Mac] Should be able to scroll embedded PDFs from keyboard
1385
1386         Reviewed by Darin Adler.
1387
1388         * WebCore.exp.in: Export ScrollableArea::scroll.
1389
1390         * html/HTMLPlugInElement.cpp: (WebCore::HTMLPlugInElement::defaultEventHandler): Call base
1391         class default event handler, so that events on focused plug-in elements would fall through
1392         to EventHandler::defaultKeyboardEventHandler.
1393
1394         * plugins/PluginViewBase.h: (WebCore::PluginViewBase::scroll): Added a method that's called
1395         on a plug-in when WebCore asks it to scroll. Plug-in cannot really know what key events
1396         result in scroll actions.
1397
1398         * rendering/RenderEmbeddedObject.cpp:
1399         (WebCore::RenderEmbeddedObject::scroll):
1400         (WebCore::RenderEmbeddedObject::logicalScroll):
1401         * rendering/RenderEmbeddedObject.h:
1402         Ask plug-in to scroll when EventHandler::scrollOverflow() is called.
1403
1404 2011-10-06  Konstantin Scheglov  <scheglov@google.com>
1405
1406         REGRESSION (r95852?): Disappearing Border on bugs.webkit.org attachments <table>
1407         https://bugs.webkit.org/show_bug.cgi?id=69296
1408
1409         Reviewed by David Hyatt.
1410
1411         Test: fast/table/border-collapsing/cached-69296.html
1412
1413         Remember BorderValue in CollapsedBorderValue by value.
1414         See https://bugs.webkit.org/show_bug.cgi?id=69296#c7 for motivation.
1415
1416         * rendering/style/CollapsedBorderValue.h:
1417         (WebCore::CollapsedBorderValue::CollapsedBorderValue):
1418         (WebCore::CollapsedBorderValue::width):
1419         (WebCore::CollapsedBorderValue::style):
1420         (WebCore::CollapsedBorderValue::exists):
1421         (WebCore::CollapsedBorderValue::isTransparent):
1422         (WebCore::CollapsedBorderValue::operator==):
1423         * rendering/RenderTableCell.cpp:
1424         (WebCore::RenderTableCell::collapsedStartBorder):
1425         (WebCore::RenderTableCell::collapsedEndBorder):
1426         (WebCore::RenderTableCell::collapsedBeforeBorder):
1427         (WebCore::RenderTableCell::collapsedAfterBorder):
1428
1429 2011-10-06  Gavin Peters  <gavinp@chromium.org>
1430
1431         save resource zeroing stacks in ScriptElement for debugging
1432         https://bugs.webkit.org/show_bug.cgi?id=69453
1433
1434         The state machine tracking how m_cachedScript gets zeroed shows that sometimes we get
1435         two notifyFinished() events in a ScriptElement, which can crash chrome (see chrome bug
1436         75604).  This patch will save a stack in the ScriptElement when this happens, so that if
1437         we do later crash, we can see how we did the first zeroing.
1438
1439         See http://code.google.com/p/chromium/issues/detail?id=75604 for the chromium bug that
1440         this change will help track down.
1441
1442         Reviewed by Nate Chapin.
1443
1444         No new tests, this shouldn't affect output at all, and isn't particularly testable.
1445
1446         * dom/ScriptElement.cpp:
1447         (WebCore::ScriptElement::ScriptElement):
1448         (WebCore::ScriptElement::stopLoadRequest):
1449         (WebCore::ScriptElement::notifyFinished):
1450         * dom/ScriptElement.h:
1451
1452 2011-10-06  Rémi Duraffort  <remi.duraffort@st.com>
1453
1454         Fix compilation by adding some missing ENABLE(VIDEO|XSLT)
1455         https://bugs.webkit.org/show_bug.cgi?id=69522
1456
1457         Unreviewed build fix
1458
1459         * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
1460         * bindings/v8/custom/V8HTMLAudioElementConstructor.h:
1461         * bindings/v8/custom/V8XSLTProcessorCustom.cpp:
1462
1463 2011-10-06  Pavel Feldman  <pfeldman@google.com>
1464
1465         Web Inspector: add Styles and Metrics sidebars to the compilation.
1466         https://bugs.webkit.org/show_bug.cgi?id=69529
1467
1468         Reviewed by Yury Semikhatsky.
1469
1470         * inspector/compile-front-end.sh:
1471         * inspector/front-end/CSSCompletions.js:
1472         (WebInspector.CSSCompletions.requestCSSNameCompletions):
1473         * inspector/front-end/CSSKeywordCompletions.js:
1474         (WebInspector.CSSKeywordCompletions.forProperty):
1475         (WebInspector.CSSKeywordCompletions.isColorAwareProperty):
1476         * inspector/front-end/Checkbox.js:
1477         * inspector/front-end/ElementsPanel.js:
1478         * inspector/front-end/MetricsSidebarPane.js:
1479         (WebInspector.MetricsSidebarPane.prototype._updateMetrics):
1480         (WebInspector.MetricsSidebarPane.prototype.startEditing):
1481         (WebInspector.MetricsSidebarPane.prototype._handleKeyDown):
1482         * inspector/front-end/SourceCSSTokenizer.js:
1483         (WebInspector.SourceCSSTokenizer):
1484         * inspector/front-end/SourceCSSTokenizer.re2js:
1485         * inspector/front-end/StylesSidebarPane.js:
1486         (WebInspector.StylesSidebarPane.prototype.update):
1487         (WebInspector.StylesSidebarPane.prototype._rebuildUpdate):
1488         (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
1489         (WebInspector.StylePropertiesSection.prototype.onpopulate):
1490         (WebInspector.StylePropertiesSection.prototype.startEditingSelector):
1491         (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted.successCallback):
1492         (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted):
1493         (WebInspector.ComputedStylePropertiesSection.prototype.onpopulate):
1494         (WebInspector.BlankStylePropertiesSection.prototype.makeNormal):
1495         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.linkifyURL):
1496         (WebInspector.StylePropertyTreeElement.prototype):
1497         * inspector/front-end/externs.js:
1498         (WebInspector.linkifyResourceAsNode):
1499         (Element.prototype.scrollIntoViewIfNeeded):
1500         (Element.prototype.selectionLeftOffset):
1501         * inspector/front-end/inspector.js:
1502         * inspector/front-end/utilities.js:
1503
1504 2011-10-06  Pavel Feldman  <pfeldman@google.com>
1505
1506         Web Inspector: extract DOMPresentation, make EventListenersSidebar compile
1507         https://bugs.webkit.org/show_bug.cgi?id=69527
1508
1509         Reviewed by Yury Semikhatsky.
1510
1511         * WebCore.gypi:
1512         * WebCore.vcproj/WebCore.vcproj:
1513         * inspector/compile-front-end.sh:
1514         * inspector/front-end/DOMAgent.js:
1515         (WebInspector.DOMNode.prototype.nodeNameInCorrectCase):
1516         (WebInspector.DOMNode.prototype.moveTo):
1517         (WebInspector.DOMNode.prototype.isXMLNode):
1518         * inspector/front-end/DOMBreakpointsSidebarPane.js:
1519         (WebInspector.DOMBreakpointsSidebarPane.prototype._setBreakpoint):
1520         * inspector/front-end/DOMPresentation.js: Added.
1521         (WebInspector.DOMPresentation.decorateNodeLabel):
1522         (WebInspector.DOMPresentation.linkifyNodeReference):
1523         (WebInspector.DOMPresentation.linkifyNodeById):
1524         * inspector/front-end/ElementsPanel.js:
1525         (WebInspector.ElementsPanel.prototype.updateBreadcrumb):
1526         * inspector/front-end/ElementsTreeOutline.js:
1527         (WebInspector.ElementsTreeOutline.prototype.set rootDOMNode):
1528         * inspector/front-end/EventListenersSidebarPane.js:
1529         * inspector/front-end/ObjectPropertiesSection.js:
1530         * inspector/front-end/PropertiesSection.js:
1531         * inspector/front-end/Section.js:
1532         * inspector/front-end/StylesSidebarPane.js:
1533         (WebInspector.StylesSidebarPane.prototype._rebuildStyleRules):
1534         (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
1535         * inspector/front-end/WebKit.qrc:
1536         * inspector/front-end/inspector.html:
1537
1538 2011-10-06  Pavel Feldman  <pfeldman@google.com>
1539
1540         Web Inspector: add all Resource panel views to the compilation.
1541         https://bugs.webkit.org/show_bug.cgi?id=69526
1542
1543         Reviewed by Yury Semikhatsky.
1544
1545         * inspector/compile-front-end.sh:
1546         * inspector/front-end/CookieItemsView.js:
1547         (WebInspector.CookieItemsView.prototype._contextMenu):
1548         (WebInspector.Cookies.cookieMatchesResourceURL):
1549         * inspector/front-end/CookiesTable.js:
1550         (WebInspector.CookiesTable):
1551         (WebInspector.CookiesTable.prototype._onDeleteFromGrid):
1552         * inspector/front-end/DOMStorageItemsView.js:
1553         (WebInspector.DOMStorageItemsView.prototype._dataGridForDOMStorageEntries):
1554         * inspector/front-end/DataGrid.js:
1555         (WebInspector.DataGrid.createSortableDataGrid.sortDataGrid.comparator):
1556         (WebInspector.DataGrid.createSortableDataGrid.sortDataGrid):
1557         (WebInspector.DataGrid.createSortableDataGrid):
1558         * inspector/front-end/DatabaseQueryView.js:
1559         (WebInspector.DatabaseQueryView.prototype._queryFinished):
1560         * inspector/front-end/DatabaseTableView.js:
1561         (WebInspector.DatabaseTableView.prototype._queryFinished):
1562         * inspector/front-end/ResourcesPanel.js:
1563         (WebInspector.ResourcesPanel.prototype.reset):
1564         (WebInspector.ResourcesPanel.prototype.showDatabase):
1565         * inspector/front-end/TextPrompt.js:
1566
1567 2011-10-06  Pavel Feldman  <pfeldman@google.com>
1568
1569         Web Inspector: add all Resource panel views to the compilation.
1570         https://bugs.webkit.org/show_bug.cgi?id=69526
1571
1572         Reviewed by Yury Semikhatsky.
1573
1574         * inspector/compile-front-end.sh:
1575         * inspector/front-end/CookieItemsView.js:
1576         (WebInspector.CookieItemsView.prototype._contextMenu):
1577         (WebInspector.Cookies.cookieMatchesResourceURL):
1578         * inspector/front-end/CookiesTable.js:
1579         (WebInspector.CookiesTable):
1580         (WebInspector.CookiesTable.prototype._onDeleteFromGrid):
1581         * inspector/front-end/DOMStorageItemsView.js:
1582         (WebInspector.DOMStorageItemsView.prototype._dataGridForDOMStorageEntries):
1583         * inspector/front-end/DataGrid.js:
1584         (WebInspector.DataGrid.createSortableDataGrid.sortDataGrid.comparator):
1585         (WebInspector.DataGrid.createSortableDataGrid.sortDataGrid):
1586         (WebInspector.DataGrid.createSortableDataGrid):
1587         * inspector/front-end/DatabaseQueryView.js:
1588         (WebInspector.DatabaseQueryView.prototype._queryFinished):
1589         * inspector/front-end/DatabaseTableView.js:
1590         (WebInspector.DatabaseTableView.prototype._queryFinished):
1591         * inspector/front-end/ResourcesPanel.js:
1592         (WebInspector.ResourcesPanel.prototype.reset):
1593         (WebInspector.ResourcesPanel.prototype.showDatabase):
1594         * inspector/front-end/TextPrompt.js:
1595
1596 2011-10-06  Sheriff Bot  <webkit.review.bot@gmail.com>
1597
1598         Unreviewed, rolling out r96791.
1599         http://trac.webkit.org/changeset/96791
1600         https://bugs.webkit.org/show_bug.cgi?id=69528
1601
1602         webkit_unit_tests broken on Mac and Win (Requested by
1603         hwennborg on #webkit).
1604
1605         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
1606
1607 2011-10-05  Mikhail Naganov  <mnaganov@chromium.org>
1608
1609         Web Inspector: [Chromium] Heap Snapshot colors legend help popup is not shown.
1610         https://bugs.webkit.org/show_bug.cgi?id=69482
1611
1612         Reviewed by Yury Semikhatsky.
1613
1614         * inspector/front-end/DetailedHeapshotView.js:
1615         (WebInspector.DetailedHeapshotView.prototype._helpClicked):
1616
1617 2011-10-05  Pavel Feldman  <pfeldman@google.com>
1618
1619         Web Inspector: add 10 more front-end classes to the compilation process.
1620         https://bugs.webkit.org/show_bug.cgi?id=69445
1621
1622         Reviewed by Yury Semikhatsky.
1623
1624         * inspector/compile-front-end.sh:
1625         * inspector/front-end/HAREntry.js:
1626         * inspector/front-end/HandlerRegistry.js:
1627         * inspector/front-end/IFrameView.js:
1628         * inspector/front-end/JavaScriptSourceFrame.js:
1629         * inspector/front-end/PanelEnablerView.js:
1630         (WebInspector.PanelEnablerView):
1631         * inspector/front-end/PartialQuickSort.js:
1632         * inspector/front-end/PropertiesSidebarPane.js:
1633         (WebInspector.PropertiesSidebarPane.prototype.update.fillSection):
1634         (WebInspector.PropertiesSidebarPane.prototype.update):
1635         * inspector/front-end/ShowMoreDataGridNode.js:
1636         * inspector/front-end/SidebarTreeElement.js:
1637         * inspector/front-end/TimelineAgent.js:
1638         * inspector/front-end/WelcomeView.js:
1639         * inspector/front-end/externs.js:
1640         (WebInspector.addMainEventListeners):
1641
1642 2011-10-05  Pavel Feldman  <pfeldman@google.com>
1643
1644         Web Inspector: make ElementsTreeOutline compile
1645         https://bugs.webkit.org/show_bug.cgi?id=69439
1646
1647         Reviewed by Yury Semikhatsky.
1648
1649         * inspector/compile-front-end.sh:
1650         * inspector/front-end/DOMAgent.js:
1651         * inspector/front-end/DOMSyntaxHighlighter.js:
1652         * inspector/front-end/ElementsPanel.js:
1653         (WebInspector.ElementsPanel.get this):
1654         (WebInspector.ElementsPanel):
1655         (WebInspector.ElementsPanel.prototype._populateContextMenu):
1656         (WebInspector.ElementsPanel.prototype._inspectElementRequested):
1657         * inspector/front-end/ElementsTreeOutline.js:
1658         (WebInspector.ElementsTreeOutline):
1659         (WebInspector.ElementsTreeOutline.prototype._contextMenuEventFired.focusElement):
1660         (WebInspector.ElementsTreeOutline.prototype._contextMenuEventFired):
1661         (WebInspector.ElementsTreeOutline.prototype._updateModifiedNodes):
1662         (WebInspector.ElementsTreeOutline.prototype._populateContextMenu):
1663         (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu):
1664         (WebInspector.ElementsTreeElement.prototype._startEditingAttribute):
1665         (WebInspector.ElementsTreeElement.prototype._startEditingTextNode):
1666         (WebInspector.ElementsTreeElement.prototype._startEditingTagName):
1667         (WebInspector.ElementsTreeElement.prototype._startEditingAsHTML):
1668         (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.changeTagNameCallback):
1669         (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted):
1670         ():
1671         * inspector/front-end/externs.js:
1672         (WebInspector.highlightDOMNode):
1673         (WebInspector.resourceURLForRelatedNode):
1674
1675 2011-10-06  Pavel Feldman  <pfeldman@google.com>
1676
1677         Web Inspector: Inspector fails to start if there was at least one watch expression.
1678         https://bugs.webkit.org/show_bug.cgi?id=69516
1679
1680         Reviewed by Yury Semikhatsky.
1681
1682         * inspector/front-end/ConsoleView.js:
1683         * inspector/front-end/WatchExpressionsSidebarPane.js:
1684         (WebInspector.WatchExpressionsSidebarPane):
1685
1686 2011-10-06  Dominic Cooney   <dominicc@chromium.org>
1687
1688         Don't make virtual calls in Node::parentNode.
1689         https://bugs.webkit.org/show_bug.cgi?id=69266
1690
1691         Reviewed by Antti Koivisto.
1692
1693         ShadowRoot and SVGShadowRoot remain semantically separate (eg
1694         isShadowRoot/isSVGShadowRoot) but share a flag
1695         (IsShadowRootOrSVGShadowRootFlag, hitherto IsShadowRootFlag just
1696         for ShadowRoot). In combination with IsSVGFlag ShadowRoot (false)
1697         can be distinguished from SVGShadowRoot (true). This lets us make
1698         isSVGShadowRoot non-virtual.
1699
1700         No change in behavior => No new tests.
1701
1702         * dom/Node.cpp:
1703         (WebCore::Node::shadowHost):
1704         * dom/Node.h:
1705         (WebCore::Node::isSVGShadowRoot):
1706         (WebCore::Node::isShadowRoot):
1707         (WebCore::Node::parentNode):
1708         (WebCore::Node::parentNodeGuaranteedHostFree):
1709         * rendering/svg/SVGShadowTreeElements.cpp:
1710         (WebCore::SVGShadowTreeContainerElement::SVGShadowTreeContainerElement):
1711         (WebCore::SVGShadowTreeRootElement::SVGShadowTreeRootElement):
1712         * rendering/svg/SVGShadowTreeElements.h:
1713         * svg/SVGElement.cpp:
1714         (WebCore::SVGElement::SVGElement):
1715         * svg/SVGElement.h:
1716         * svg/SVGGElement.cpp:
1717         (WebCore::SVGGElement::SVGGElement):
1718         * svg/SVGGElement.h:
1719         * svg/SVGStyledElement.cpp:
1720         (WebCore::SVGStyledElement::SVGStyledElement):
1721         * svg/SVGStyledElement.h:
1722         * svg/SVGStyledLocatableElement.cpp:
1723         (WebCore::SVGStyledLocatableElement::SVGStyledLocatableElement):
1724         * svg/SVGStyledLocatableElement.h:
1725         * svg/SVGStyledTransformableElement.cpp:
1726         (WebCore::SVGStyledTransformableElement::SVGStyledTransformableElement):
1727         * svg/SVGStyledTransformableElement.h:
1728
1729 2011-10-06  John Knottenbelt  <jknotten@chromium.org>
1730
1731         Take pageScaleFactor into account for MouseRelatedEvents.
1732         https://bugs.webkit.org/show_bug.cgi?id=67592
1733
1734         Reviewed by Tony Gentilcore.
1735
1736         Tests: fast/events/page-scaled-mouse-click-iframe.html
1737                fast/events/page-scaled-mouse-click.html
1738
1739         * dom/MouseRelatedEvent.cpp:
1740         (WebCore::contentsScrollOffset):
1741         (WebCore::MouseRelatedEvent::MouseRelatedEvent):
1742         (WebCore::frameScaleFactor):
1743         (WebCore::MouseRelatedEvent::computePageLocation):
1744         (WebCore::MouseRelatedEvent::computeRelativePosition):
1745
1746 2011-10-03  Hans Wennborg  <hans@chromium.org>
1747
1748         IndexedDB: Remove SQLite-LevelDB migration code
1749         https://bugs.webkit.org/show_bug.cgi?id=69264
1750
1751         Reviewed by Tony Chang.
1752
1753         Remove migration functionality.
1754
1755         Just removing code, so no new tests.
1756
1757         * storage/IDBFactoryBackendImpl.cpp:
1758         (WebCore::IDBFactoryBackendImpl::open):
1759         * storage/IDBFactoryBackendImpl.h:
1760
1761 2011-10-06  James Robinson  <jamesr@chromium.org>
1762
1763         [chromium] Remove USE(THREADED_COMPOSITING) from the tree
1764         https://bugs.webkit.org/show_bug.cgi?id=69489
1765
1766         Reviewed by Darin Fisher.
1767
1768         This macro isn't needed any more since the logic it guarded is guarded by a runtime switch.
1769
1770         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
1771
1772 2011-10-05  Kentaro Hara  <haraken@chromium.org>
1773
1774         Refactor IDL attributes about constructor
1775         https://bugs.webkit.org/show_bug.cgi?id=69074
1776
1777         Reviewed by Adam Barth.
1778
1779         Currently, IDL attributes about constructor are confusing:
1780
1781         - [CustomConstructFunction] means that there is a custom constructor for JSC.
1782         - [V8CustomConstructor] means that there is a custom constructor for V8.
1783         - [CustomConstructor] exists in CodeGenerator*.pm but is not used in any IDL files.
1784         - For almost all IDL files, [CustomConstructFunction] and [V8CustomConstructor] are used at the same time.
1785         - ObjC, CPP and GObject bindings do not support custom constructors.
1786
1787         This patch makes the following changes:
1788
1789         - Rename [CustomConstructFunction] to [JSCustomConstructor].
1790         - [JSCustomConstructor] means that there is a custom constructor for JSC.
1791         - [V8CustomConstructor] means that there is a custom constructor for V8.
1792         - [CustomConstructor] means that there is a custom constructor for both JSC and V8.
1793
1794         No new tests. No change in behavior. Confirm that build succeeds.
1795
1796         * bindings/scripts/CodeGeneratorJS.pm: Removed [CustomConstructFunction] and added [JSCustomConstructor]
1797         (GenerateHeader):
1798         (GenerateAttributesHashTable):
1799         (GenerateImplementation):
1800         (GenerateConstructorDefinition):
1801         * css/WebKitCSSMatrix.idl: Renamed [CustomConstructFunction] to [JSCustomConstructor]. If both [JSCustomConstructor] and [V8CustomConstructor] are specified, then we replaced them with [CustomConstructor].
1802         * dom/CustomEvent.idl: Ditto.
1803         * dom/ErrorEvent.idl: Ditto.
1804         * dom/Event.idl: Ditto.
1805         * dom/HashChangeEvent.idl: Ditto.
1806         * dom/MessageChannel.idl: Ditto.
1807         * dom/MessageEvent.idl: Ditto.
1808         * dom/PageTransitionEvent.idl: Ditto.
1809         * dom/PopStateEvent.idl: Ditto.
1810         * dom/ProgressEvent.idl: Ditto.
1811         * dom/WebKitAnimationEvent.idl: Ditto.
1812         * html/DOMFormData.idl: Ditto.
1813         * html/canvas/ArrayBuffer.idl: Ditto.
1814         * html/canvas/DataView.idl: Ditto.
1815         * html/canvas/Float32Array.idl: Ditto.
1816         * html/canvas/Float64Array.idl: Ditto.
1817         * html/canvas/Int16Array.idl: Ditto.
1818         * html/canvas/Int32Array.idl: Ditto.
1819         * html/canvas/Int8Array.idl: Ditto.
1820         * html/canvas/Uint16Array.idl: Ditto.
1821         * html/canvas/Uint32Array.idl: Ditto.
1822         * html/canvas/Uint8Array.idl: Ditto.
1823         * p2p/PeerConnection.idl: Ditto.
1824         * page/EventSource.idl: Ditto.
1825         * page/WebKitPoint.idl: Ditto.
1826         * webaudio/AudioContext.idl: Ditto.
1827         * websockets/CloseEvent.idl: Ditto.
1828         * websockets/WebSocket.idl: Ditto.
1829         * workers/SharedWorker.idl: Ditto.
1830         * workers/Worker.idl: Ditto.
1831         * xml/XMLHttpRequest.idl: Ditto.
1832         * xml/XSLTProcessor.idl: Ditto.
1833
1834 2011-10-03  Andy Estes  <aestes@apple.com>
1835
1836         Add the option to suppress rendering until the document's load event fires.
1837         https://bugs.webkit.org/show_bug.cgi?id=69298
1838
1839         Reviewed by Simon Fraser.
1840
1841         Add a WebCore setting that suppresses painting and compositing layer
1842         updates until the document's load event fires. This masks the effects
1843         of incremental rendering (for clients that opt in) by ensuring that all
1844         sub-resources have loaded and a full layout has taken place before
1845         painting the document for the first time.
1846
1847         No tests currently possible. Testing this would require the ability for
1848         DRT to dump state while resources are loading, which it doesn't
1849         currently do.
1850
1851         * dom/Document.cpp:
1852         (WebCore::Document::implicitClose): If rendering was previously
1853         suppressed, force a repaint and compositing layer update.
1854         (WebCore::Document::visualUpdatesAllowed): Add a helper method to
1855         determine if the document is in a state where rendering is allowed.
1856         * dom/Document.h:
1857         * page/Settings.cpp:
1858         (WebCore::Settings::Settings):
1859         * page/Settings.h:
1860         (WebCore::Settings::setSuppressIncrementalRendering):
1861         (WebCore::Settings::suppressIncrementalRendering):
1862         * rendering/RenderLayer.cpp:
1863         (WebCore::shouldSuppressPaintingLayer): Encapsulate the FOUC and
1864         painting suppression checks into a single helper function for
1865         readability's sake.
1866         (WebCore::RenderLayer::paintLayer):
1867         * rendering/RenderLayerCompositor.cpp:
1868         (WebCore::RenderLayerCompositor::updateCompositingLayers): If we should
1869         suppress compositing layer updates and the load event has yet to fire,
1870         return early.
1871
1872 2011-10-05  Yuta Kitamura  <yutak@chromium.org>
1873
1874         WebSocket: Add extensions attribute
1875         https://bugs.webkit.org/show_bug.cgi?id=69408
1876
1877         Reviewed by Kent Tamura.
1878
1879         Add WebSocket's "extensions" attribute as specified in the WebSocket API
1880         <http://dev.w3.org/html5/websockets/#the-websocket-interface>.
1881
1882         WebSocket protocol extension is not implemented at all, thus this attribute
1883         always returns an empty string.
1884
1885         Test: http/tests/websocket/tests/hybi/extensions.html
1886               http/tests/websocket/tests/hixie76/undefined-attributes.html (updated)
1887
1888         * websockets/WebSocket.cpp:
1889         (WebCore::WebSocket::extensions):
1890         If the hixie-76 protocol is chosen, we need to return "undefined" in order to
1891         keep behavior of the ports which have not used the newer hybi protocol yet.
1892         * websockets/WebSocket.h:
1893         * websockets/WebSocket.idl:
1894
1895 2011-10-05  Dominic Cooney  <dominicc@chromium.org>
1896
1897         IsShadowRootFlag should not depend on whether a ShadowRoot is attached to a host.
1898         https://bugs.webkit.org/show_bug.cgi?id=69406
1899
1900         Reviewed by Hajime Morita.
1901
1902         No change in behavior => No new tests.
1903
1904         * dom/Node.cpp:
1905         (WebCore::Node::setShadowHost): Don't twiddle the flag.
1906         * dom/Node.h:
1907         * dom/ShadowRoot.cpp:
1908         (WebCore::ShadowRoot::ShadowRoot): Set the IsShadowRootFlag on creation.
1909         * dom/TreeScope.cpp:
1910         (WebCore::TreeScope::TreeScope): Let ShadowRoot set creation flags.
1911         * dom/TreeScope.h:
1912
1913 2011-10-05  Chris Rogers  <crogers@google.com>
1914
1915         Define a log2f() function for Windows in wtf/MathExtras.h
1916         https://bugs.webkit.org/show_bug.cgi?id=69491
1917
1918         Reviewed by Darin Adler.
1919
1920         No new tests. This change is tested in existing layout tests.
1921
1922         * webaudio/AudioParamTimeline.cpp:
1923         (WebCore::AudioParamTimeline::valuesForTimeRangeImpl):
1924
1925 2011-10-05  Erik Arvidsson  <arv@chromium.org>
1926
1927         window.location.href and others needlessly decodes URI-encoded characters
1928         https://bugs.webkit.org/show_bug.cgi?id=30225
1929
1930         Reviewed by Darin Adler.
1931
1932         Don't decode KURL::path() and stop using KURL::deprecatedString() in Location methods.
1933
1934         This slightly changes how we parse data and javascript URLs (non hierarchical URLs) to
1935         not encode so aggressively.
1936
1937         * fileapi/DOMFileSystemBase.cpp:
1938         (WebCore::DOMFileSystemBase::crackFileSystemURL): Manually decode path()
1939         * loader/FrameLoader.cpp:
1940         (WebCore::FrameLoader::defaultObjectContentType): Manually decode path()
1941         * page/Location.cpp:
1942         (WebCore::Location::href): Use string() instead of deprecatedString()
1943         * page/Location.h:
1944         (WebCore::Location::toString): Inline call to href()
1945         * platform/KURL.cpp:
1946         (WebCore::KURL::path): Don't decode.
1947         (WebCore::escapeAndAppendNonHierarchicalPart): Rename escapeAndAppendFragment to escapeAndAppendNonHierarchicalPart
1948                                                        since this is now used for more than just fragments.
1949         (WebCore::KURL::parse): Don't decode
1950         * platform/KURLGoogle.cpp:
1951         (WebCore::KURL::path): Remove out of date comment
1952         * platform/qt/KURLQt.cpp:
1953         (WebCore::KURL::fileSystemPath): Manually decode path()
1954         * platform/win/ClipboardWin.cpp:
1955         (WebCore::createGlobalHDropContent): Manually decode path()
1956         * workers/WorkerLocation.cpp:
1957         (WebCore::WorkerLocation::href): Use string() instead of deprecatedString()
1958         * workers/WorkerLocation.h:
1959         (WebCore::WorkerLocation::toString): Inline call to href()
1960
1961 2011-10-05  Darin Adler  <darin@apple.com>
1962
1963         [Mac] Use four more named cursors if present
1964         https://bugs.webkit.org/show_bug.cgi?id=69488
1965
1966         Reviewed by Dan Bernstein.
1967
1968         * platform/mac/CursorMac.mm:
1969         (WebCore::Cursor::ensurePlatformCursor): Use the names "Help", "Cell",
1970         "ZoomIn", and "ZoomOut" to get those cursors. Structure the code so it
1971         falls back if the cursors are not present.
1972
1973 2011-10-05  Tony Chang  <tony@chromium.org>
1974
1975         force margin:auto to 0 in flex items
1976         https://bugs.webkit.org/show_bug.cgi?id=69475
1977
1978         Reviewed by Ojan Vafai.
1979
1980         The spec used to say the margin had a value of flex(1 0 0), but changed to just be 0.
1981
1982         * rendering/RenderFlexibleBox.cpp:
1983         (WebCore::RenderFlexibleBox::computePreferredLogicalWidth):
1984         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
1985
1986 2011-10-05  Dean Jackson  <dino@apple.com>
1987
1988         Computed style for filter property
1989         https://bugs.webkit.org/show_bug.cgi?id=68477
1990
1991         Reviewed by Simon Fraser.
1992
1993         Reports the computed style for the new -webkit-filter
1994         property value.
1995
1996         Test: css3/filters/filter-property-computed-style.html
1997
1998         * css/CSSComputedStyleDeclaration.cpp:
1999         (WebCore::computedFilter):
2000         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2001
2002 2011-10-05  Jer Noble  <jer.noble@apple.com>
2003
2004         Enable WEB_AUDIO by default in the WebKit/mac port.
2005         https://bugs.webkit.org/show_bug.cgi?id=68587
2006
2007         Reviewed by Simon Fraser.
2008
2009         No new tests; existing webaudio/ layout tests cover this.
2010
2011         * Configurations/FeatureDefines.xcconfig:
2012         * WebCore.xcodeproj/project.pbxproj: Add a build step which copies audio resources to
2013             the WebCore.framework bundle.
2014
2015 2011-10-03  Ojan Vafai  <ojan@chromium.org>
2016
2017         [flexbox] take marginBeforeForChild into account when positioning children
2018         https://bugs.webkit.org/show_bug.cgi?id=69313
2019
2020         Reviewed by Tony Chang.
2021
2022         * rendering/RenderFlexibleBox.cpp:
2023         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
2024
2025 2011-10-05  Vangelis Kokkevis  <vangelis@chromium.org>
2026
2027         Switching threaded compositor from a compile time option to a
2028         run time one.
2029         https://bugs.webkit.org/show_bug.cgi?id=69391
2030
2031         Reviewed by Darin Fisher.
2032
2033         Mostly converted #if USE(THREADED_COMPOSITING) to a regular if statements.
2034         In addition, CCLayerTreeHost::scheduleComposite() is removed as it wasn't being
2035         called from anywhere, 
2036
2037         No new tests as it doesn't add new functionality.
2038
2039         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
2040         (WebCore::CCLayerTreeHost::setNeedsCommitThenRedraw):
2041         (WebCore::CCLayerTreeHost::setNeedsRedraw):
2042         (WebCore::CCLayerTreeHost::composite):
2043         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2044         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
2045         (WebCore::CCSingleThreadProxy::setNeedsCommitThenRedraw):
2046         (WebCore::CCSingleThreadProxy::compositeImmediately):
2047         * platform/graphics/chromium/cc/CCSingleThreadProxy.h:
2048
2049 2011-10-05  Dean Jackson  <dino@apple.com>
2050
2051         Parse '-webkit-filter' property syntax
2052         https://bugs.webkit.org/show_bug.cgi?id=68473
2053
2054         Reviewed by Nikolas Zimmermann.
2055
2056         Parse the new -webkit-filter property, looking for shorthand
2057         functions then testing number, type and value of parameters.
2058
2059         Note that support for drop-shadow() was omitted from this
2060         patch because parsing CSS shadow syntax was going to require some
2061         refactoring of the box and text shadow code. The followup
2062         bug is https://bugs.webkit.org/show_bug.cgi?id=69108.
2063
2064         Also, computed style will return null for filters at the moment.
2065         That's https://bugs.webkit.org/show_bug.cgi?id=68477.
2066
2067         Tests: css3/filters/filter-property-parsing-invalid.html
2068                css3/filters/filter-property-parsing.html
2069
2070         * CMakeLists.txt:
2071         * CodeGenerators.pri:
2072         * DerivedSources.cpp:
2073         * DerivedSources.make:
2074         * GNUmakefile.list.am:
2075         * WebCore.gypi:
2076         * WebCore.pro:
2077         * WebCore.vcproj/WebCore.vcproj:
2078         * WebCore.xcodeproj/project.pbxproj:
2079             Build files updated for new WebKitCSSFilterValue classes.
2080         * bindings/js/JSCSSValueCustom.cpp:
2081         (WebCore::toJS):
2082         * bindings/objc/DOMCSS.mm:
2083             Test if value is WebKitCSSFilterValue.
2084         * css/CSSParser.cpp:
2085         (WebCore::filterInfoForName):
2086         (WebCore::CSSParser::isValidFilterArgument):
2087         (WebCore::CSSParser::parseFilter):
2088         * css/CSSParser.h:
2089         * css/CSSStyleSelector.cpp:
2090         (WebCore::CSSStyleSelector::applyProperty):
2091         (WebCore::filterOperationForType):
2092         (WebCore::CSSStyleSelector::createFilterOperations):
2093         * css/CSSStyleSelector.h:
2094             Handle the new shorthand functions in -webkit-filter.
2095         * css/CSSValue.h:
2096         (WebCore::CSSValue::isWebKitCSSFilterValue):
2097             Add virtual function that returns false here.
2098         * css/WebKitCSSFilterValue.cpp: Added.
2099         (WebCore::WebKitCSSFilterValue::WebKitCSSFilterValue):
2100         (WebCore::WebKitCSSFilterValue::~WebKitCSSFilterValue):
2101         (WebCore::WebKitCSSFilterValue::cssText):
2102         * css/WebKitCSSFilterValue.h: Added.
2103         (WebCore::WebKitCSSFilterValue::create):
2104         (WebCore::WebKitCSSFilterValue::operationType):
2105         (WebCore::WebKitCSSFilterValue::isWebKitCSSFilterValue):
2106         * css/WebKitCSSFilterValue.idl: Added.
2107             WebKitCSSFilterValue modelled closely on WebKitCSSTransformValue,
2108             basically identifying the type of operation in a CSSValueList.
2109         * page/DOMWindow.idl:
2110             New WebKitCSSFilterValue constructor.
2111         * platform/graphics/filters/FilterOperation.h:
2112         (WebCore::BlurFilterOperation::create):
2113         (WebCore::BlurFilterOperation::stdDeviationX):
2114         (WebCore::BlurFilterOperation::stdDeviationY):
2115         (WebCore::BlurFilterOperation::BlurFilterOperation):
2116         (WebCore::SharpenFilterOperation::create):
2117         (WebCore::SharpenFilterOperation::radius):
2118         (WebCore::SharpenFilterOperation::threshold):
2119         (WebCore::SharpenFilterOperation::SharpenFilterOperation):
2120             Use Length rather than double for parameters that are CSS lengths.
2121
2122 2011-10-05  Chris Rogers  <crogers@google.com>
2123
2124         Fix Windows build - it doesn't have a log2f() function...
2125         https://bugs.webkit.org/show_bug.cgi?id=69473
2126
2127         Unreviewed build fix.
2128
2129         * webaudio/AudioParamTimeline.cpp:
2130         (WebCore::AudioParamTimeline::valuesForTimeRangeImpl):
2131
2132 2011-10-05  James Robinson  <jamesr@chromium.org>
2133
2134         [chromium] ASSERT triggered when gpu process lost in single-threaded compositing path
2135         https://bugs.webkit.org/show_bug.cgi?id=69467
2136
2137         Reviewed by Kenneth Russell.
2138
2139         Shuffles debug-only bookkeeping around to more closely match what we do in the threaded path and not trip a
2140         false-positive ASSERT().
2141
2142         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
2143         (WebCore::CCSingleThreadProxy::doComposite):
2144
2145 2011-10-05  Sheriff Bot  <webkit.review.bot@gmail.com>
2146
2147         Unreviewed, rolling out r96756.
2148         http://trac.webkit.org/changeset/96756
2149         https://bugs.webkit.org/show_bug.cgi?id=69472
2150
2151         Many builds broken due to WTFGetBacktrace not being exported
2152         from JavaScriptCore (Requested by aroben on #webkit).
2153
2154         * dom/ScriptElement.cpp:
2155         (WebCore::ScriptElement::ScriptElement):
2156         (WebCore::ScriptElement::stopLoadRequest):
2157         (WebCore::ScriptElement::notifyFinished):
2158         * dom/ScriptElement.h:
2159
2160 2011-10-05  Gavin Peters  <gavinp@chromium.org>
2161
2162         save resource zeroing stacks in ScriptElement for debugging
2163         https://bugs.webkit.org/show_bug.cgi?id=69453
2164
2165         The state machine tracking how m_cachedScript gets zeroed shows that sometimes we get
2166         two notifyFinished() events in a ScriptElement, which can crash chrome (see chrome bug
2167         75604).  This patch will save a stack in the ScriptElement when this happens, so that if
2168         we do later crash, we can see how we did the first zeroing.
2169
2170         See http://code.google.com/p/chromium/issues/detail?id=75604 for the chromium bug that
2171         this change will help track down.
2172
2173         Reviewed by Nate Chapin.
2174
2175         No new tests, this shouldn't affect output at all, and isn't particularly testable.
2176
2177         * dom/ScriptElement.cpp:
2178         (WebCore::ScriptElement::ScriptElement):
2179         (WebCore::ScriptElement::stopLoadRequest):
2180         (WebCore::ScriptElement::notifyFinished):
2181         * dom/ScriptElement.h:
2182
2183 2011-10-05  Alexey Proskuryakov  <ap@apple.com>
2184
2185         More build fix.
2186
2187         * WebCore.exp.in: Made a typo in a last minute change for my 32-bit build fix.
2188
2189 2011-10-05  Anna Cavender  <annacc@chromium.org>
2190
2191         Fix CueParser::didFinishLoading to match changes in ThreadableLoaderClient
2192         https://bugs.webkit.org/show_bug.cgi?id=69456
2193
2194         Reviewed by David Levin.
2195
2196         No new tests. No new functionality.
2197
2198         * html/track/CueParser.cpp:
2199         (WebCore::CueParser::didFinishLoading):
2200         * html/track/CueParser.h:
2201
2202 2011-10-05  Alexey Proskuryakov  <ap@apple.com>
2203
2204         32-bit build fix.
2205
2206         * WebCore.exp.in: In 32-bit, WebCore needs to export both NSSize and CGSize constructors.
2207         In 64-bit, NSSize is just a typedef for CGSize. Also fixed conversion operators, for good measure.
2208
2209 2011-10-05  Jer Noble  <jer.noble@apple.com>
2210
2211         WEB_AUDIO does not compile on Leopard 32-bit.
2212         https://bugs.webkit.org/show_bug.cgi?id=69292
2213
2214         Reviewed by Simon Fraser.
2215
2216         No new tests; covered by all existing audio tests.
2217
2218         Use of float and double within the WEB_AUDIO implementation have been harmonized, with most
2219         calculations done using floats, with narrowPrecisionToFloat() added when necessary to
2220         narrow double results down to floats, and with float constants initialized with float values:
2221         * platform/audio/AudioBus.cpp:
2222         (WebCore::AudioBus::AudioBus):
2223         (WebCore::AudioBus::createByMixingToMono):
2224         * platform/audio/AudioBus.h:
2225         (WebCore::AudioBus::sampleRate):
2226         (WebCore::AudioBus::setSampleRate):
2227         * platform/audio/AudioDSPKernel.h:
2228         (WebCore::AudioDSPKernel::AudioDSPKernel):
2229         (WebCore::AudioDSPKernel::sampleRate):
2230         * platform/audio/AudioDSPKernelProcessor.cpp:
2231         (WebCore::AudioDSPKernelProcessor::AudioDSPKernelProcessor):
2232         * platform/audio/AudioDSPKernelProcessor.h:
2233         * platform/audio/AudioDestination.h:
2234         * platform/audio/AudioFileReader.h:
2235         * platform/audio/AudioProcessor.h:
2236         (WebCore::AudioProcessor::AudioProcessor):
2237         (WebCore::AudioProcessor::sampleRate):
2238         * platform/audio/AudioUtilities.cpp:
2239         (WebCore::AudioUtilities::decibelsToLinear):
2240         (WebCore::AudioUtilities::linearToDecibels):
2241         (WebCore::AudioUtilities::discreteTimeConstantForSampleRate):
2242         * platform/audio/AudioUtilities.h:
2243         * platform/audio/DynamicsCompressor.cpp:
2244         (WebCore::DynamicsCompressor::DynamicsCompressor):
2245         (WebCore::DynamicsCompressor::initializeParameters):
2246         (WebCore::DynamicsCompressor::parameterValue):
2247         (WebCore::DynamicsCompressor::setEmphasisStageParameters):
2248         (WebCore::DynamicsCompressor::process):
2249         * platform/audio/DynamicsCompressor.h:
2250         (WebCore::DynamicsCompressor::sampleRate):
2251         (WebCore::DynamicsCompressor::nyquist):
2252         * platform/audio/DynamicsCompressorKernel.cpp:
2253         (WebCore::saturate):
2254         (WebCore::DynamicsCompressorKernel::DynamicsCompressorKernel):
2255         (WebCore::DynamicsCompressorKernel::process):
2256         * platform/audio/DynamicsCompressorKernel.h:
2257         * platform/audio/EqualPowerPanner.cpp:
2258         (WebCore::EqualPowerPanner::EqualPowerPanner):
2259         * platform/audio/EqualPowerPanner.h:
2260         * platform/audio/HRTFDatabase.cpp:
2261         (WebCore::HRTFDatabase::create):
2262         (WebCore::HRTFDatabase::HRTFDatabase):
2263         * platform/audio/HRTFDatabase.h:
2264         (WebCore::HRTFDatabase::sampleRate):
2265         * platform/audio/HRTFDatabaseLoader.cpp:
2266         (WebCore::HRTFDatabaseLoader::createAndLoadAsynchronouslyIfNecessary):
2267         (WebCore::HRTFDatabaseLoader::HRTFDatabaseLoader):
2268         * platform/audio/HRTFDatabaseLoader.h:
2269         (WebCore::HRTFDatabaseLoader::databaseSampleRate):
2270         * platform/audio/HRTFElevation.cpp:
2271         (WebCore::HRTFElevation::calculateSymmetricKernelsForAzimuthElevation):
2272         (WebCore::HRTFElevation::calculateKernelsForAzimuthElevation):
2273         (WebCore::HRTFElevation::createForSubject):
2274         (WebCore::HRTFElevation::createByInterpolatingSlices):
2275         * platform/audio/HRTFElevation.h:
2276         (WebCore::HRTFElevation::sampleRate):
2277         (WebCore::HRTFElevation::HRTFElevation):
2278         * platform/audio/HRTFKernel.cpp:
2279         (WebCore::extractAverageGroupDelay):
2280         (WebCore::HRTFKernel::HRTFKernel):
2281         (WebCore::HRTFKernel::createInterpolatedKernel):
2282         * platform/audio/HRTFKernel.h:
2283         (WebCore::HRTFKernel::create):
2284         (WebCore::HRTFKernel::frameDelay):
2285         (WebCore::HRTFKernel::sampleRate):
2286         (WebCore::HRTFKernel::HRTFKernel):
2287         * platform/audio/HRTFPanner.cpp:
2288         (WebCore::HRTFPanner::HRTFPanner):
2289         (WebCore::HRTFPanner::fftSizeForSampleRate):
2290         * platform/audio/HRTFPanner.h:
2291         (WebCore::HRTFPanner::sampleRate):
2292         * platform/audio/Panner.cpp:
2293         (WebCore::Panner::create):
2294         * platform/audio/Panner.h:
2295         * platform/audio/chromium/AudioBusChromium.cpp:
2296         (WebCore::AudioBus::loadPlatformResource):
2297         * platform/audio/mac/AudioBusMac.mm:
2298         (WebCore::AudioBus::loadPlatformResource):
2299         * platform/audio/mac/AudioDestinationMac.cpp:
2300         (WebCore::AudioDestination::create):
2301         (WebCore::AudioDestination::hardwareSampleRate):
2302         (WebCore::AudioDestinationMac::AudioDestinationMac):
2303         * platform/audio/mac/AudioDestinationMac.h:
2304         (WebCore::AudioDestinationMac::sampleRate):
2305         * platform/audio/mac/AudioFileReaderMac.cpp:
2306         (WebCore::AudioFileReader::createBus):
2307         (WebCore::createBusFromAudioFile):
2308         (WebCore::createBusFromInMemoryAudioFile):
2309         * platform/audio/mac/AudioFileReaderMac.h:
2310         * webaudio/AsyncAudioDecoder.cpp:
2311         (WebCore::AsyncAudioDecoder::decodeAsync):
2312         (WebCore::AsyncAudioDecoder::DecodingTask::create):
2313         (WebCore::AsyncAudioDecoder::DecodingTask::DecodingTask):
2314         * webaudio/AsyncAudioDecoder.h:
2315         (WebCore::AsyncAudioDecoder::DecodingTask::sampleRate):
2316         * webaudio/AudioBasicProcessorNode.cpp:
2317         (WebCore::AudioBasicProcessorNode::AudioBasicProcessorNode):
2318         * webaudio/AudioBasicProcessorNode.h:
2319         * webaudio/AudioBuffer.cpp:
2320         (WebCore::AudioBuffer::create):
2321         (WebCore::AudioBuffer::createFromAudioFileData):
2322         (WebCore::AudioBuffer::AudioBuffer):
2323         * webaudio/AudioBuffer.h:
2324         (WebCore::AudioBuffer::sampleRate):
2325         * webaudio/AudioBufferSourceNode.cpp:
2326         (WebCore::AudioBufferSourceNode::create):
2327         (WebCore::AudioBufferSourceNode::AudioBufferSourceNode):
2328         (WebCore::AudioBufferSourceNode::process):
2329         (WebCore::AudioBufferSourceNode::renderFromBuffer):
2330         * webaudio/AudioBufferSourceNode.h:
2331         * webaudio/AudioChannelMerger.cpp:
2332         (WebCore::AudioChannelMerger::AudioChannelMerger):
2333         * webaudio/AudioChannelMerger.h:
2334         (WebCore::AudioChannelMerger::create):
2335         * webaudio/AudioChannelSplitter.cpp:
2336         (WebCore::AudioChannelSplitter::AudioChannelSplitter):
2337         * webaudio/AudioChannelSplitter.h:
2338         (WebCore::AudioChannelSplitter::create):
2339         * webaudio/AudioContext.cpp:
2340         (WebCore::AudioContext::createOfflineContext):
2341         (WebCore::AudioContext::AudioContext):
2342         (WebCore::AudioContext::createBuffer):
2343         * webaudio/AudioContext.h:
2344         (WebCore::AudioContext::sampleRate):
2345         * webaudio/AudioDestinationNode.cpp:
2346         (WebCore::AudioDestinationNode::AudioDestinationNode):
2347         * webaudio/AudioDestinationNode.h:
2348         * webaudio/AudioGainNode.cpp:
2349         (WebCore::AudioGainNode::AudioGainNode):
2350         * webaudio/AudioGainNode.h:
2351         (WebCore::AudioGainNode::create):
2352         * webaudio/AudioListener.cpp:
2353         (WebCore::AudioListener::AudioListener):
2354         * webaudio/AudioListener.h:
2355         (WebCore::AudioListener::setPosition):
2356         (WebCore::AudioListener::setOrientation):
2357         (WebCore::AudioListener::setVelocity):
2358         * webaudio/AudioNode.cpp:
2359         (WebCore::AudioNode::AudioNode):
2360         * webaudio/AudioNode.h:
2361         (WebCore::AudioNode::sampleRate):
2362         * webaudio/AudioPannerNode.cpp:
2363         (WebCore::AudioPannerNode::AudioPannerNode):
2364         (WebCore::AudioPannerNode::getAzimuthElevation):
2365         * webaudio/AudioPannerNode.h:
2366         (WebCore::AudioPannerNode::create):
2367         * webaudio/AudioParam.cpp:
2368         (WebCore::AudioParam::value):
2369         (WebCore::AudioParam::smoothedValue):
2370         (WebCore::AudioParam::smooth):
2371         (WebCore::AudioParam::calculateSampleAccurateValues):
2372         * webaudio/AudioParamTimeline.cpp:
2373         (WebCore::AudioParamTimeline::valueForContextTime):
2374         (WebCore::timeToSampleFrame):
2375         (WebCore::AudioParamTimeline::valuesForTimeRangeImpl):
2376         * webaudio/AudioSourceNode.h:
2377         (WebCore::AudioSourceNode::AudioSourceNode):
2378         * webaudio/BiquadFilterNode.cpp:
2379         (WebCore::BiquadFilterNode::BiquadFilterNode):
2380         * webaudio/BiquadFilterNode.h:
2381         (WebCore::BiquadFilterNode::create):
2382         * webaudio/BiquadProcessor.cpp:
2383         (WebCore::BiquadProcessor::BiquadProcessor):
2384         * webaudio/BiquadProcessor.h:
2385         * webaudio/ConvolverNode.cpp:
2386         (WebCore::ConvolverNode::ConvolverNode):
2387         * webaudio/ConvolverNode.h:
2388         (WebCore::ConvolverNode::create):
2389         * webaudio/DefaultAudioDestinationNode.cpp:
2390         (WebCore::DefaultAudioDestinationNode::initialize):
2391         * webaudio/DefaultAudioDestinationNode.h:
2392         (WebCore::DefaultAudioDestinationNode::sampleRate):
2393         * webaudio/DelayDSPKernel.cpp:
2394         (WebCore::DelayDSPKernel::DelayDSPKernel):
2395         (WebCore::DelayDSPKernel::process):
2396         * webaudio/DelayDSPKernel.h:
2397         * webaudio/DelayNode.cpp:
2398         (WebCore::DelayNode::DelayNode):
2399         * webaudio/DelayNode.h:
2400         (WebCore::DelayNode::create):
2401         * webaudio/DelayProcessor.cpp:
2402         (WebCore::DelayProcessor::DelayProcessor):
2403         * webaudio/DelayProcessor.h:
2404         * webaudio/DynamicsCompressorNode.cpp:
2405         (WebCore::DynamicsCompressorNode::DynamicsCompressorNode):
2406         * webaudio/DynamicsCompressorNode.h:
2407         (WebCore::DynamicsCompressorNode::create):
2408         * webaudio/HighPass2FilterNode.cpp:
2409         (WebCore::HighPass2FilterNode::HighPass2FilterNode):
2410         * webaudio/HighPass2FilterNode.h:
2411         (WebCore::HighPass2FilterNode::create):
2412         * webaudio/JavaScriptAudioNode.cpp:
2413         (WebCore::JavaScriptAudioNode::create):
2414         (WebCore::JavaScriptAudioNode::JavaScriptAudioNode):
2415         (WebCore::JavaScriptAudioNode::initialize):
2416         * webaudio/JavaScriptAudioNode.h:
2417         * webaudio/LowPass2FilterNode.cpp:
2418         (WebCore::LowPass2FilterNode::LowPass2FilterNode):
2419         * webaudio/LowPass2FilterNode.h:
2420         (WebCore::LowPass2FilterNode::create):
2421         * webaudio/OfflineAudioDestinationNode.h:
2422         (WebCore::OfflineAudioDestinationNode::sampleRate):
2423         * webaudio/RealtimeAnalyserNode.cpp:
2424         (WebCore::RealtimeAnalyserNode::RealtimeAnalyserNode):
2425         * webaudio/RealtimeAnalyserNode.h:
2426         (WebCore::RealtimeAnalyserNode::create):
2427         * webaudio/WaveShaperDSPKernel.cpp:
2428         (WebCore::WaveShaperDSPKernel::process):
2429         * webaudio/WaveShaperProcessor.cpp:
2430         (WebCore::WaveShaperProcessor::WaveShaperProcessor):
2431         * webaudio/WaveShaperProcessor.h:
2432
2433
2434 2011-10-05  Alexey Proskuryakov  <ap@apple.com>
2435
2436         [Mac] Make built-in PDF description localizable
2437         https://bugs.webkit.org/show_bug.cgi?id=69442
2438
2439         Reviewed by Dan Bernstein.
2440
2441         Added strings for plug-in's name and for its supported MIME type.
2442
2443         * English.lproj/Localizable.strings:
2444         * WebCore.exp.in:
2445         * platform/DefaultLocalizationStrategy.cpp:
2446         (WebCore::DefaultLocalizationStrategy::builtInPDFPluginName):
2447         (WebCore::DefaultLocalizationStrategy::pdfDocumentTypeDescription):
2448         * platform/DefaultLocalizationStrategy.h:
2449         * platform/LocalizationStrategy.h:
2450         * platform/LocalizedStrings.cpp:
2451         (WebCore::builtInPDFPluginName):
2452         (WebCore::pdfDocumentTypeDescription):
2453         * platform/LocalizedStrings.h:
2454
2455 2011-10-05  David Levin  <levin@chromium.org>
2456
2457         Attempt to fix the bindings test (broken by r96727).
2458         Reviewed by Adam Barth.
2459
2460         * bindings/scripts/test/V8/V8TestInterface.cpp:
2461         (WebCore::ConfigureV8TestInterfaceTemplate):
2462         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
2463         (WebCore::ConfigureV8TestMediaQueryListListenerTemplate):
2464         * bindings/scripts/test/V8/V8TestObj.cpp:
2465         (WebCore::ConfigureV8TestObjTemplate):
2466         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
2467         (WebCore::ConfigureV8TestSerializedScriptValueInterfaceTemplate):
2468
2469 2011-10-05  James Robinson  <jamesr@chromium.org>
2470
2471         [chromium] Hook WebCompositor interface for input events up to the compositor proper
2472         https://bugs.webkit.org/show_bug.cgi?id=69394
2473
2474         Reviewed by Darin Fisher.
2475
2476         This wires up WebCompositorImpl to the compositor itself so we can handle input events as scrolls on the
2477         compositor thread, although it doesn't actually wire up any input events to actual scrolling. The way this
2478         works:
2479
2480         - CCThreadProxy owns an adapter that implements the CCScrollController interface
2481         - CCThreadProxy owns a CCInputHandler, which is implemented by WebKit::WebCompositorImpl, that has a pointer to
2482         the adapter
2483         - CCLayerTreeHost has an identifier (an int) for its WebKit::WebCompositorImpl that's initialized in
2484         initializeLayerRenderer. This identifier is exposed to its owner (WebKit::WebViewImpl) so the embedder can wire
2485         up the threading logic behind the scenes.
2486
2487         This is just plumbing, no change in behavior.
2488
2489         * WebCore.gypi:
2490         * platform/graphics/chromium/cc/CCInputHandler.h: Added.
2491         (WebCore::CCInputHandler::~CCInputHandler):
2492         (WebCore::CCInputHandler::CCInputHandler):
2493         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
2494         (WebCore::CCLayerTreeHost::CCLayerTreeHost):
2495         (WebCore::CCLayerTreeHost::initialize):
2496         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2497         (WebCore::CCLayerTreeHost::compositorIdentifier):
2498         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
2499         (WebCore::CCLayerTreeHostImpl::scrollRootLayer):
2500         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
2501         * platform/graphics/chromium/cc/CCProxy.h:
2502         * platform/graphics/chromium/cc/CCScrollController.h: Added.
2503         (WebCore::CCScrollController::CCScrollController):
2504         (WebCore::CCScrollController::~CCScrollController):
2505         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
2506         (WebCore::CCSingleThreadProxy::CCSingleThreadProxy):
2507         * platform/graphics/chromium/cc/CCSingleThreadProxy.h:
2508         (WebCore::CCSingleThreadProxy::compositorIdentifier):
2509         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2510         (WebCore::CCThreadProxyScrollControllerAdapter::create):
2511         (WebCore::CCThreadProxyScrollControllerAdapter::~CCThreadProxyScrollControllerAdapter):
2512         (WebCore::CCThreadProxyScrollControllerAdapter::scrollRootLayer):
2513         (WebCore::CCThreadProxyScrollControllerAdapter::CCThreadProxyScrollControllerAdapter):
2514         (WebCore::CCThreadProxy::CCThreadProxy):
2515         (WebCore::CCThreadProxy::initializeLayerRenderer):
2516         (WebCore::CCThreadProxy::compositorIdentifier):
2517         (WebCore::CCThreadProxy::beginFrameAndCommit):
2518         (WebCore::CCThreadProxy::initializeLayerRendererOnCCThread):
2519         (WebCore::CCThreadProxy::layerTreeHostClosedOnCCThread):
2520         * platform/graphics/chromium/cc/CCThreadProxy.h:
2521
2522 2011-10-05  Andreas Kling  <kling@webkit.org>
2523
2524         Shrink OutlineValue.
2525         https://bugs.webkit.org/show_bug.cgi?id=69436
2526
2527         Reviewed by Darin Adler.
2528
2529         Move OutlineValue::m_isAuto up into the base class (BorderValue.)
2530         This shrinks OutlineValue by 32 bit, which in turn shrinks
2531         StyleBackgroundData by one CPU word.
2532
2533         This reduces memory consumption by 250 kB (on 64-bit) when loading
2534         the full HTML5 spec.
2535
2536         * rendering/style/BorderValue.h:
2537         (WebCore::BorderValue::BorderValue):
2538         * rendering/style/OutlineValue.h:
2539         (WebCore::OutlineValue::OutlineValue):
2540         (WebCore::OutlineValue::isAuto):
2541
2542 2011-10-05  Chang Shu  <cshu@webkit.org>
2543
2544         [WK2] WebKitTestRunner needs LayoutTestController.dumpConfigurationForViewport
2545         https://bugs.webkit.org/show_bug.cgi?id=69365
2546
2547         Reviewed by Darin Adler.
2548
2549         Expose computeViewportAttributes for mac build.
2550
2551         * WebCore.exp.in:
2552
2553 2011-10-05  Anna Cavender  <annacc@chromium.org>
2554
2555         Functions to make <track> enabled at runtime, including changes to
2556         CodeGeneratorvV8 to allow entire interfaces (not just attributes) to
2557         be runtime-enabled.
2558         https://bugs.webkit.org/show_bug.cgi?id=69352
2559
2560         Reviewed by Adam Barth.
2561
2562         No new tests. No new functionality.
2563
2564         * bindings/generic/RuntimeEnabledFeatures.cpp:
2565         * bindings/generic/RuntimeEnabledFeatures.h:
2566         (WebCore::RuntimeEnabledFeatures::webkitVideoTrackEnabled):
2567         (WebCore::RuntimeEnabledFeatures::setWebkitVideoTrackEnabled):
2568         * bindings/scripts/CodeGeneratorV8.pm:
2569         * html/HTMLMediaElement.cpp:
2570         (WebCore::HTMLMediaElement::loadTextTracks):
2571         * html/HTMLTrackElement.idl:
2572
2573 2011-10-05  Kenneth Russell  <kbr@google.com>
2574
2575         Mask underlying RENDERER and VENDOR strings
2576         https://bugs.webkit.org/show_bug.cgi?id=69389
2577
2578         Reviewed by Sam Weinig.
2579
2580         Test: fast/canvas/webgl/renderer-and-vendor-strings.html
2581
2582         * html/canvas/WebGLGetInfo.h:
2583         * html/canvas/WebGLRenderingContext.cpp:
2584         (WebCore::WebGLRenderingContext::getParameter):
2585
2586 2011-10-05  Sachin Puranik  <jcqt43@motorola.com>
2587
2588         Spec change - option.label should be reflected like option.value
2589         https://bugs.webkit.org/show_bug.cgi?id=68684
2590
2591         Reviewed by Darin Adler.
2592
2593         Incorporating the recent change in spec for label attribute of 
2594         option element. While retrieving the "Label" IDL attribute return
2595         the "Label" content attribute if present , else return the 
2596         value of textContent attribute.
2597
2598         Tests: fast/forms/option-label-trim-html-spaces.html
2599                fast/forms/option-value-and-label-changed-by-js.html
2600
2601         * dom/OptionElement.cpp:
2602         (WebCore::OptionElement::normalizeText):style fixes
2603         * dom/OptionElement.h: make collectOptionInnerText() protected.
2604         * html/HTMLOptionElement.cpp:
2605         (WebCore::HTMLOptionElement::label): return innerText if label attribute un-available.
2606         (WebCore::HTMLOptionElement::setLabel):setLabel() implementation.
2607         * html/HTMLOptionElement.h: add setLabel declaration.
2608         * html/HTMLOptionElement.idl: Change reflect to ConvertNullToNullString in idl
2609
2610 2011-10-05  Rémi Duraffort  <remi.duraffort@st.com>
2611
2612         [GTK] Fix compilation with gtk v2.20.1
2613         https://bugs.webkit.org/show_bug.cgi?id=69418
2614
2615         Unreviewed build fix
2616
2617         * platform/gtk/GtkDragAndDropHelper.cpp:
2618
2619 2011-10-05  David Hyatt  <hyatt@apple.com>
2620
2621         https://bugs.webkit.org/show_bug.cgi?id=68731
2622         
2623         Outline sides not painted for region. Fix the painting and hit testing code for regions to add in
2624         the maximalOutlineSize on unclipped sides. Also fix some math errors with the computation of the
2625         translation offset and clip rects when overflow or outlines spill out.
2626
2627         Reviewed by Darin Adler.
2628
2629         Added new test in fast/regions.
2630
2631         * rendering/RenderFlowThread.cpp:
2632         (WebCore::RenderFlowThread::paintIntoRegion):
2633         (WebCore::RenderFlowThread::hitTestRegion):
2634         * rendering/RenderRegion.cpp:
2635         (WebCore::RenderRegion::regionOverflowRect):
2636
2637 2011-10-05  Yury Semikhatsky  <yurys@chromium.org>
2638         
2639         Unreviewed. Build fix: make InspectorStateClient.h Private in XCode project.
2640
2641         * WebCore.xcodeproj/project.pbxproj:
2642
2643 2011-10-05  Martin Robinson  <mrobinson@igalia.com>
2644
2645         libsoup-CRITICAL **: soup_message_io_pause: assertion `io != NULL' failed
2646         https://bugs.webkit.org/show_bug.cgi?id=64263
2647
2648         Reviewed by Xan Lopez.
2649
2650         No new tests. This is difficult to test because it relies on network
2651         timing and to catch and parse stdout.
2652
2653         Instead of allowing messages to pause and unpause after receiving headers,
2654         we wait until the completion of the sendRequestCallback. This will ensure
2655         that the SoupSession is in the correct state to allow for pausing and unpausing.
2656
2657         * platform/network/soup/ResourceHandleSoup.cpp:
2658         (WebCore::ResourceHandle::platformSetDefersLoading): Don't pause and unpause
2659         until the sendRequestCallback is called. We detect this situation by
2660         checking whether or not we have an input stream yet. Previously the code
2661         was only pausing until after soupMessage->status_code was not equal to
2662         SOUP_STATUS_NONE. This means that the message was pausable right after
2663         headers are received. sendRequestCallback happens some time after that.
2664
2665 2011-10-05  Ilya Tikhonovsky  <loislo@chromium.org>
2666
2667         Unreviewed build fix for Debug builders.
2668
2669         * inspector/WorkerInspectorController.cpp:
2670         (WebCore::WorkerInspectorController::restoreInspectorStateFromCookie):
2671
2672 2011-10-05  Dirk Schulze  <krit@webkit.org>
2673
2674         SVG 1.1: ineffectual transform attribute for ClipPath
2675         https://bugs.webkit.org/show_bug.cgi?id=55361
2676
2677         Reviewed by Nikolas Zimmermann.
2678         
2679         Respect 'transform' attribute/property for <clip-path>.
2680         If the masking code path is used the mask context gets transformed, otherwise the path itself.
2681
2682         Tests: svg/clip-path/clip-path-transform-1.svg
2683                svg/clip-path/clip-path-transform-2.svg
2684                svg/dynamic-updates/SVGClipPathElement-transform-influences-hitTesting.html
2685
2686         * rendering/svg/RenderSVGResourceClipper.cpp:
2687         (WebCore::RenderSVGResourceClipper::pathOnlyClipping): Transform the clip path.
2688         (WebCore::RenderSVGResourceClipper::applyClippingToContext):
2689         (WebCore::RenderSVGResourceClipper::drawContentIntoMaskImage): Transform the context of the mask image.
2690         (WebCore::RenderSVGResourceClipper::calculateClipContentRepaintRect): Repaint rect must get concatenated with the current animated transformation.
2691         (WebCore::RenderSVGResourceClipper::hitTestClipContent): Point for hit testing must be transformed by the current animated transformation.
2692         * rendering/svg/RenderSVGResourceClipper.h:
2693
2694 2011-10-05  Pavel Feldman  <pfeldman@google.com>
2695
2696         Web Inspector: move elements panel update semantics from ElementsPanel to ElementsTreeOutline.
2697         https://bugs.webkit.org/show_bug.cgi?id=69431
2698
2699         Reviewed by Yury Semikhatsky.
2700
2701         * inspector/front-end/ConsoleMessage.js:
2702         (WebInspector.ConsoleMessageImpl.prototype._formatParameterAsNode):
2703         * inspector/front-end/ElementsPanel.js:
2704         (WebInspector.ElementsPanel.get this):
2705         (WebInspector.ElementsPanel):
2706         (WebInspector.ElementsPanel.prototype.show):
2707         (WebInspector.ElementsPanel.prototype.hide):
2708         (WebInspector.ElementsPanel.prototype._selectedNodeChanged):
2709         (WebInspector.ElementsPanel.prototype._reset):
2710         (WebInspector.ElementsPanel.prototype._nodeRemoved):
2711         (WebInspector.ElementsPanel.prototype.updateBreadcrumb.selectCrumbFunction):
2712         (WebInspector.ElementsPanel.prototype.updateBreadcrumb):
2713         * inspector/front-end/ElementsTreeOutline.js:
2714         (WebInspector.ElementsTreeOutline):
2715         (WebInspector.ElementsTreeOutline.prototype.wireToDomAgent):
2716         (WebInspector.ElementsTreeOutline.prototype.setVisible):
2717         (WebInspector.ElementsTreeOutline.prototype.addEventListener):
2718         (WebInspector.ElementsTreeOutline.prototype.removeEventListener):
2719         (WebInspector.ElementsTreeOutline.prototype.selectDOMNode):
2720         (WebInspector.ElementsTreeOutline.prototype.update):
2721         (WebInspector.ElementsTreeOutline.prototype._selectedNodeChanged):
2722         (WebInspector.ElementsTreeOutline.prototype.findTreeElement.parentNode):
2723         (WebInspector.ElementsTreeOutline.prototype.findTreeElement):
2724         (WebInspector.ElementsTreeOutline.prototype.createTreeElementFor):
2725         (WebInspector.ElementsTreeOutline.prototype._ondrop.callback):
2726         (WebInspector.ElementsTreeOutline.prototype._ondrop):
2727         (WebInspector.ElementsTreeOutline.prototype.adjustCollapsedRange):
2728         (WebInspector.ElementsTreeOutline.prototype._updateModifiedNodes):
2729         (WebInspector.ElementsTreeElement.prototype.insertChildElement):
2730         (WebInspector.ElementsTreeElement.prototype.selectOnMouseDown):
2731         (WebInspector.ElementsTreeElement.prototype._startEditingAsHTML.dispose):
2732         (WebInspector.ElementsTreeElement.prototype._startEditingAsHTML):
2733         (WebInspector.ElementsTreeElement.prototype._attributeEditingCommitted.moveToNextAttributeIfNeeded):
2734         (WebInspector.ElementsTreeElement.prototype._attributeEditingCommitted):
2735         (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.changeTagNameCallback):
2736         (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted):
2737         (WebInspector.ElementsTreeElement.prototype._textNodeEditingCommitted):
2738         (WebInspector.ElementsTreeElement.prototype._editingCancelled):
2739         ():
2740         * inspector/front-end/externs.js:
2741         (WebInspector.ElementsTreeOutline):
2742         * inspector/front-end/utilities.js:
2743
2744 2011-10-05  Yury Semikhatsky  <yurys@chromium.org>
2745
2746         Web Inspector: provide a way for persisting worker inspector state
2747         https://bugs.webkit.org/show_bug.cgi?id=69422
2748
2749         Worker inspector can persist and restore its state. InspectorStateClient is
2750         exctracted into a separate interface and has a custom implementation in case
2751         of worker inspector.
2752
2753         Reviewed by Pavel Feldman.
2754
2755         * GNUmakefile.list.am:
2756         * WebCore.gypi:
2757         * WebCore.vcproj/WebCore.vcproj:
2758         * WebCore.xcodeproj/project.pbxproj:
2759         * inspector/InspectorClient.h:
2760         * inspector/InspectorState.cpp:
2761         (WebCore::InspectorState::InspectorState):
2762         * inspector/InspectorState.h:
2763         * inspector/InspectorStateClient.h: Copied from Source/WebCore/inspector/InspectorClient.h.
2764         (WebCore::InspectorStateClient::~InspectorStateClient):
2765         (WebCore::InspectorStateClient::updateInspectorStateCookie):
2766         * inspector/WorkerInspectorController.cpp:
2767         (WebCore::WorkerInspectorController::WorkerInspectorController):
2768         (WebCore::WorkerInspectorController::restoreInspectorStateFromCookie):
2769         * inspector/WorkerInspectorController.h:
2770         * workers/DefaultSharedWorkerRepository.cpp:
2771         (WebCore::SharedWorkerProxy::postMessageToPageInspector):
2772         (WebCore::SharedWorkerProxy::updateInspectorStateCookie):
2773         * workers/WorkerMessagingProxy.cpp:
2774         (WebCore::WorkerMessagingProxy::updateInspectorStateCookie):
2775         * workers/WorkerMessagingProxy.h:
2776         * workers/WorkerReportingProxy.h:
2777
2778 2011-10-05  Abhishek Arya  <inferno@chromium.org>
2779
2780         Crash in SVGTRefElement::updateReferencedText.
2781         https://bugs.webkit.org/show_bug.cgi?id=67555
2782
2783         Reviewed by Rob Buis.
2784
2785         Test: svg/text/tref-event-listener-crash.svg
2786
2787         * svg/SVGTRefElement.cpp:
2788         (WebCore::SubtreeModificationEventListener::clear): This fixes the
2789         crash. there can be cases when our target is removed, but our event
2790         listener is alive. when our tref is going away, we need to disable
2791         those event listeners by nulling out our tref element.
2792         (WebCore::SubtreeModificationEventListener::handleEvent): Adding
2793         null check for tref element, which can happen in cases where
2794         event listener's clear is called, but we could not remove it from
2795         the target.
2796         (WebCore::SVGTRefElement::~SVGTRefElement): There are always
2797         cases when removedFromDocument is not called. So, important to
2798         clear event listener in those cases.
2799         (WebCore::SVGTRefElement::svgAttributeChanged): Use common
2800         function buildPendingResource.
2801         (WebCore::SVGTRefElement::buildPendingResource): Common function
2802         to prevent triple duplication of same code. made it more readable.
2803         (WebCore::SVGTRefElement::insertedIntoDocument): Use common
2804         function buildPendingResource.
2805         (WebCore::SVGTRefElement::removedFromDocument): Use new helper
2806         removeEventListener.
2807         (WebCore::SVGTRefElement::clearEventListener): Helper to clear
2808         event listener. Name chosen to not collide with Node::removeEventListener.
2809         * svg/SVGTRefElement.h: definition of new helpers.
2810         * svg/SVGTextPathElement.cpp:
2811         (WebCore::SVGTextPathElement::insertedIntoDocument): Copy same
2812         logic as tref and use element. more asserts and easy bailouts.
2813
2814 2011-10-05  Pavel Feldman  <pfeldman@google.com>
2815
2816         Not reviewed: restoring : shortcut in inspector.
2817
2818         * inspector/front-end/ScriptsPanel.js:
2819         (WebInspector.ScriptsPanel.prototype._createSidebarButtons):
2820
2821 2011-10-05  Andreas Kling  <kling@webkit.org>
2822
2823         Shrink FontDescription.
2824         https://bugs.webkit.org/show_bug.cgi?id=69426
2825
2826         Reviewed by Nikolas Zimmermann.
2827
2828         Pack FontDescription's members in a bitfield, effectively shrinking
2829         the class by two CPU-words. This reduces memory consumption by ~1 MB
2830         on 64-bit when loading the full HTML5 spec.
2831
2832         * platform/graphics/FontDescription.h:
2833         (WebCore::FontDescription::orientation):
2834         (WebCore::FontDescription::textOrientation):
2835         (WebCore::FontDescription::widthVariant):
2836
2837 2011-10-05  Vsevolod Vlasov  <vsevik@chromium.org>
2838
2839         Web Inspector: Add support for search in script content.
2840         https://bugs.webkit.org/show_bug.cgi?id=69015
2841
2842         Reviewed by Pavel Feldman.
2843
2844         Tests: http/tests/inspector/search/search-in-concatenated-script.html
2845                http/tests/inspector/search/search-in-script.html
2846
2847         * inspector/Inspector.json:
2848         * inspector/InspectorDebuggerAgent.cpp:
2849         (WebCore::InspectorDebuggerAgent::searchInContent):
2850         (WebCore::InspectorDebuggerAgent::getScriptSource):
2851         * inspector/InspectorDebuggerAgent.h:
2852         * inspector/front-end/ContentProviders.js:
2853         (WebInspector.ScriptContentProvider.prototype.searchInContent):
2854         (WebInspector.ConcatenatedScriptsContentProvider.prototype._sortedScripts.var):
2855         (WebInspector.ConcatenatedScriptsContentProvider.prototype._sortedScripts):
2856         (WebInspector.ConcatenatedScriptsContentProvider.prototype.requestContent):
2857         (WebInspector.ConcatenatedScriptsContentProvider.prototype.searchInContent.maybeCallback):
2858         (WebInspector.ConcatenatedScriptsContentProvider.prototype.searchInContent.searchCallback):
2859         (WebInspector.ConcatenatedScriptsContentProvider.prototype.searchInContent):
2860         (WebInspector.ConcatenatedScriptsContentProvider.prototype._concatenateScriptsContent):
2861         * inspector/front-end/Script.js:
2862         (WebInspector.Script.prototype.requestSource.didGetScriptSource):
2863         (WebInspector.Script.prototype.requestSource):
2864         (WebInspector.Script.prototype.searchInContent):
2865
2866 2011-10-05  Alexis Menard  <alexis.menard@openbossa.org>
2867
2868         [Qt][WK2] Default directories and paths are missing for LocalStorage, Database and IconDatabase.
2869         https://bugs.webkit.org/show_bug.cgi?id=69111
2870
2871         Reviewed by Kenneth Rohde Christiansen.
2872
2873         Provide default path for LocalStorage, Database and IconDatabase using QDesktopServices.
2874
2875         No new tests : existing ones should cover.
2876
2877         * platform/qt/CookieJarQt.cpp:
2878         (WebCore::SharedCookieJarQt::SharedCookieJarQt):
2879
2880 2011-10-05  Patrick Gansterer  <paroga@webkit.org>
2881
2882         Unreviewed build fix for !ENABLE(FILTERS) after r96203.
2883
2884         * rendering/svg/SVGResourcesCache.cpp:
2885         (WebCore::SVGResourcesCache::clientUpdatedFromElement):
2886
2887 2011-10-05  Ilya Tikhonovsky  <loislo@chromium.org>
2888
2889         Unreviewed build fix for windows bots after r96679.
2890
2891         * html/NumberInputType.h:
2892
2893 2011-10-04  Pavel Feldman  <pfeldman@google.com>
2894
2895         Web Inspector: make ResourceView(s) compile
2896         https://bugs.webkit.org/show_bug.cgi?id=69351
2897
2898         Reviewed by Yury Semikhatsky.
2899
2900         * inspector/compile-front-end.sh:
2901         * inspector/front-end/CookiesTable.js:
2902         (WebInspector.CookiesTable.prototype._sortCookies):
2903         * inspector/front-end/DataGrid.js:
2904         * inspector/front-end/EmptyView.js:
2905         * inspector/front-end/FontView.js:
2906         (WebInspector.FontView.prototype._createContentIfNeeded):
2907         * inspector/front-end/ImageView.js:
2908         (WebInspector.ImageView.prototype._createContentIfNeeded.onImageLoad):
2909         (WebInspector.ImageView.prototype._createContentIfNeeded):
2910         (WebInspector.ImageView.prototype._openInNewTab):
2911         * inspector/front-end/NetworkItemView.js:
2912         * inspector/front-end/ResourceCookiesView.js:
2913         * inspector/front-end/ResourceHTMLView.js:
2914         (WebInspector.ResourceHTMLView.prototype.hide):
2915         * inspector/front-end/ResourceHeadersView.js:
2916         (WebInspector.ResourceHeadersView.prototype._refreshParms):
2917         (WebInspector.ResourceHeadersView.prototype._refreshHeadersTitle):
2918         (WebInspector.ResourceHeadersView.prototype._refreshHeaders):
2919         (WebInspector.ResourceHeadersView.prototype._refreshHeadersText):
2920         * inspector/front-end/ResourceJSONView.js:
2921         (WebInspector.ResourceJSONView.parseJSON.WebInspector.ResourceJSONView.parseJSONP):
2922         * inspector/front-end/ResourcePreviewView.js:
2923         * inspector/front-end/ResourceResponseView.js:
2924         * inspector/front-end/ResourceTimingView.js:
2925         (WebInspector.ResourceTimingView.createTimingTable):
2926         * inspector/front-end/ResourceView.js:
2927         (WebInspector.ResourceSourceFrame):
2928         * inspector/front-end/SourceFrame.js:
2929         * inspector/front-end/TabbedPane.js:
2930         * inspector/front-end/UIUtils.js:
2931         (Number.secondsToString):
2932         (Number.bytesToString):
2933         * inspector/front-end/inspector.js:
2934
2935 2011-10-04  Ilya Tikhonovsky  <loislo@chromium.org>
2936
2937         Web Inspector: debuggerPresentatioModel.linkifyLocation leaks updateAnchor closure instances.
2938         https://bugs.webkit.org/show_bug.cgi?id=69146
2939
2940         In many places we use linkifyLocation function to produce a link node which updates automatically when the source file is changed on the fly.
2941         Such changes happen when we use pretty print or another operation that changes the source code somehow.
2942         linkifyLocation associates a new instance of updateAnchor closure with the each link node and add the closure to the SourceMappingUpdated event's list.
2943         As the result the node<->closure pairs wouldn't be collected until reset the UI and DebuggerPresentationModel.
2944
2945         Reviewed by Pavel Feldman.
2946
2947         Test: inspector/debugger/linkifier.html
2948
2949         * inspector/front-end/ConsoleMessage.js:
2950         (WebInspector.ConsoleMessageImpl):
2951         (WebInspector.ConsoleMessageImpl.prototype._linkifyLocation):
2952         * inspector/front-end/ConsoleView.js:
2953         (WebInspector.ConsoleView.prototype._consoleCleared):
2954         (WebInspector.ConsoleCommandResult):
2955         (WebInspector.ConsoleMessage.create):
2956         (WebInspector.ConsoleMessage.createTextMessage):
2957         * inspector/front-end/DebuggerPresentationModel.js:
2958         (WebInspector.DebuggerPresentationModel.prototype.createLinkifier):
2959         (WebInspector.DebuggerPresentationModel.Linkifier):
2960         (WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyLocation):
2961         (WebInspector.DebuggerPresentationModel.Linkifier.prototype.reset):
2962         (WebInspector.DebuggerPresentationModel.Linkifier.prototype._updateSourceAnchors):
2963         (WebInspector.DebuggerPresentationModel.Linkifier.prototype._updateAnchor):
2964         * inspector/front-end/EventListenersSidebarPane.js:
2965         (WebInspector.EventListenersSidebarPane.prototype.update.callback):
2966         (WebInspector.EventListenersSidebarPane.prototype.update):
2967         ():
2968         * inspector/front-end/NetworkPanel.js:
2969         (WebInspector.NetworkLogView):
2970         (WebInspector.NetworkLogView.prototype._reset):
2971         (WebInspector.NetworkDataGridNode.prototype._refreshInitiatorCell):
2972         * inspector/front-end/ProfileDataGridTree.js:
2973         (WebInspector.ProfileDataGridNode.prototype.createCell):
2974         * inspector/front-end/ProfileView.js:
2975         (WebInspector.CPUProfileView):
2976         (WebInspector.CPUProfileView.prototype._resetClicked):
2977         * inspector/front-end/TimelinePanel.js:
2978         (WebInspector.TimelinePanel):
2979         (WebInspector.TimelinePanel.prototype._linkifyLocation):
2980         (WebInspector.TimelinePanel.prototype._linkifyCallFrame):
2981         (WebInspector.TimelinePanel.prototype._clearPanel):
2982         (WebInspector.TimelinePanel.FormattedRecord):
2983         (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
2984         (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
2985         (WebInspector.TimelinePanel.PopupContentHelper):
2986         (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendLinkRow):
2987         (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendStackTrace):
2988         * inspector/front-end/inspector.js:
2989
2990 2011-10-03  Andreas Kling  <kling@webkit.org>
2991
2992         REGRESSION(r82611) InlineBox has 33 bits of bitset, causing alignment issues and extra memory use.
2993         https://bugs.webkit.org/show_bug.cgi?id=64914
2994
2995         Reviewed by Antti Koivisto.
2996
2997         Remove InlineBox::prevOnLineExists() and its two accompanying bitfields
2998         since nobody is using them anymore. nextOnLineExists() is still used by
2999         GTK+ accessibility code.
3000
3001         Also added a compile-time assertion to guard against future bloating of
3002         the InlineBox class.
3003
3004         * rendering/InlineBox.cpp:
3005         (WebCore::SameSizeAsInlineBox::~SameSizeAsInlineBox):
3006         * rendering/InlineBox.h:
3007         (WebCore::InlineBox::InlineBox):
3008
3009 2011-10-05  Andreas Kling  <kling@webkit.org>
3010
3011         Shrink FontFallbackList.
3012         https://bugs.webkit.org/show_bug.cgi?id=69093
3013
3014         Rubber-stamped by Antti Koivisto.
3015
3016         Workaround MSVC quirk by making enum bitfield "unsigned".
3017
3018         * platform/graphics/FontFallbackList.h:
3019
3020 2011-10-05  Andreas Kling  <kling@webkit.org>
3021
3022         Shrink StyleRareNonInheritedData.
3023         https://bugs.webkit.org/show_bug.cgi?id=69331
3024
3025         Reviewed by Darin Adler.
3026
3027         Workaround MSVC quirk by making enum bitfields "unsigned".
3028
3029         * rendering/style/RenderStyle.h:
3030         (WebCore::InheritedFlags::regionOverflow):
3031         (WebCore::InheritedFlags::transformStyle3D):
3032         (WebCore::InheritedFlags::backfaceVisibility):
3033         (WebCore::InheritedFlags::pageSizeType):
3034         * rendering/style/StyleRareNonInheritedData.h:
3035
3036 2011-10-05  Pavel Feldman  <pfeldman@chromium.org>
3037
3038         Web Inspector: add CSS model classes to the compilation.
3039         https://bugs.webkit.org/show_bug.cgi?id=69376
3040
3041         Reviewed by Yury Semikhatsky.
3042
3043         * inspector/compile-front-end.sh:
3044         * inspector/front-end/CSSCompletions.js:
3045         * inspector/front-end/CSSKeywordCompletions.js:
3046         (WebInspector.CSSKeywordCompletions.forProperty):
3047         * inspector/front-end/CSSStyleModel.js:
3048         (WebInspector.CSSStyleDeclaration):
3049         (WebInspector.CSSStyleModelResourceBinding.prototype.setContent):
3050         (WebInspector.CSSStyleModelResourceBinding.prototype.canSetContent):
3051         * inspector/front-end/ResourceTreeModel.js:
3052         * inspector/front-end/StylesSidebarPane.js:
3053         (WebInspector.StylesSidebarPane.prototype._containsInherited):
3054         (WebInspector.StylePropertiesSection.prototype.isPropertyInherited):
3055         (WebInspector.StylePropertiesSection.prototype.isPropertyOverloaded):
3056         (WebInspector.ComputedStylePropertiesSection.prototype.rebuildComputedTrace):
3057         * inspector/front-end/externs.js:
3058         (Array.prototype.keySet):
3059
3060 2011-10-05  Kent Tamura  <tkent@chromium.org>
3061
3062         Input styles are unexpectedly shared regardless of required status difference.
3063         https://bugs.webkit.org/show_bug.cgi?id=69402
3064
3065         Reviewed by Daniel Bates.
3066
3067         Tests: fast/css/pseudo-required-shared.html
3068
3069         * css/CSSStyleSelector.cpp:
3070         (WebCore::CSSStyleSelector::canShareStyleWithControl): Check the difference of required().
3071
3072 2011-10-04  Kent Tamura  <tkent@chromium.org>
3073
3074         Remove Node::willBlur()
3075         https://bugs.webkit.org/show_bug.cgi?id=69395
3076
3077         Reviewed by Ryosuke Niwa.
3078
3079         Revert the WebCore part of r87371 because
3080         FrameSelection::textWillBeReplaced() doesn't set focus anymore.
3081         No new tests. Covered by fast/forms/input-number-blur-twice.html.
3082
3083         * dom/Document.cpp:
3084         (WebCore::Document::setFocusedNode): Revert r87371.
3085         * dom/Node.cpp: ditto.
3086         * dom/Node.h: ditto.
3087         * html/HTMLInputElement.cpp:
3088         (WebCore::HTMLInputElement::handleBlurEvent): ditto.
3089         * html/HTMLInputElement.h: ditto.
3090         * html/InputType.cpp:
3091         (WebCore::InputType::handleBlurEvent): ditto.
3092         * html/InputType.h: ditto.
3093         * html/NumberInputType.cpp:
3094         (WebCore::NumberInputType::handleBlurEvent): ditto.
3095         * html/NumberInputType.h: ditto.
3096
3097 2011-10-04  Kent Tamura  <tkent@chromium.org>
3098
3099         Introduce feature flags for incomplete input types
3100         https://bugs.webkit.org/show_bug.cgi?id=68971
3101
3102         Reviewed by Hajime Morita.
3103
3104         * Configurations/FeatureDefines.xcconfig:
3105          Add ENABLE_INPUT_TYPE_* flags. They are enabled only for iOS.
3106         * html/DateInputType.cpp: Wrapped with ENABLE(INPUT_TYPE_DATE)
3107         * html/DateInputType.h: ditto.
3108         * html/DateTimeInputType.cpp: Wrapped with ENABLE(INPUT_TYPE_DATETIME)
3109         * html/DateTimeInputType.h: ditto.
3110         * html/DateTimeLocalInputType.cpp: Wrapped with ENABLE(INPUT_TYPE_DATETIMELOCAL)
3111         * html/DateTimeLocalInputType.h: ditto.
3112         * html/InputType.cpp:
3113         (WebCore::createInputTypeFactoryMap):
3114          Recognizes type attribute value only if it is enabled by ENABLE(INPUT_TYPE_*).
3115         * html/MonthInputType.cpp: Wrapped with ENABLE(INPUT_TYPE_MONTH)
3116         * html/MonthInputType.h: ditto.
3117         * html/TimeInputType.cpp: Wrapped with ENABLE(INPUT_TYPE_TIME)
3118         * html/TimeInputType.h: ditto.
3119         * html/WeekInputType.cpp: Wrapped with ENABLE(INPUT_TYPE_WEEK)
3120         * html/WeekInputType.h: ditto.
3121
3122 2011-10-04  David Hyatt  <hyatt@apple.com>
3123
3124         https://bugs.webkit.org/show_bug.cgi?id=69398
3125
3126         [CSS3 Regions] Support the region-overflow property properly.
3127         
3128         (1) Change -webkit-break to break, since the -webkit-region-overflow property already has the
3129         -webkit- extension.
3130         
3131         (2) Fix clipping so that it works when overflow is set or when region break is set.
3132         
3133         (3) Refactor all the pagination spots to check if a next page is available using the new hasNextPage
3134         function. This prevents us from paginating if we hit the last region and further breaks are no longer
3135         allowed.
3136         
3137         Reviewed by Dan Bernstein.
3138
3139         Added new tests in fast/regions.
3140
3141         * css/CSSParser.cpp:
3142         (WebCore::CSSParser::parseValue):
3143         * css/CSSPrimitiveValueMappings.h:
3144         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
3145         (WebCore::CSSPrimitiveValue::operator RegionOverflow):
3146         * css/CSSValueKeywords.in:
3147         * rendering/RenderBlock.cpp:
3148         (WebCore::RenderBlock::collapseMargins):
3149         (WebCore::RenderBlock::estimateLogicalTopPosition):
3150         (WebCore::RenderBlock::hasNextPage):
3151         (WebCore::RenderBlock::nextPageLogicalTop):
3152         (WebCore::RenderBlock::applyBeforeBreak):
3153         (WebCore::RenderBlock::applyAfterBreak):
3154         (WebCore::RenderBlock::pageLogicalHeightForOffset):
3155         (WebCore::RenderBlock::pageRemainingLogicalHeightForOffset):
3156         (WebCore::RenderBlock::adjustForUnsplittableChild):
3157         (WebCore::RenderBlock::pushToNextPageWithMinimumLogicalHeight):
3158         (WebCore::RenderBlock::adjustLinePositionForPagination):
3159         * rendering/RenderBlock.h:
3160         * rendering/RenderFlowThread.cpp:
3161         (WebCore::RenderFlowThread::layout):
3162         (WebCore::RenderFlowThread::repaintRectangleInRegions):
3163         (WebCore::RenderFlowThread::regionRemainingLogicalHeightForLine):
3164         * rendering/RenderFlowThread.h:
3165         * rendering/RenderRegion.cpp:
3166         (WebCore::RenderRegion::regionOverflowRect):
3167
3168 2011-10-04  Mark Hahnenberg  <mhahnenberg@apple.com>
3169
3170         Add static ClassInfo structs to classes that override JSCell::getCallData
3171         https://bugs.webkit.org/show_bug.cgi?id=69311
3172
3173         Reviewed by Darin Adler.
3174
3175         No new tests.
3176
3177         Added ClassInfo structs to each class that defined its own getCallData 
3178         function but did not already have its own ClassInfo struct.  This is a 
3179         necessary addition for when we switch over to looking up getCallData from 
3180         the MethodTable in ClassInfo rather than doing the virtual call (which we 
3181         are removing).  These new ClassInfo structs are public because we often 
3182         use these structs in other areas of the code to uniquely identify JSC classes and 
3183         to enforce runtime invariants based on those class identities using ASSERTs.
3184         Also added new createStructure methods to those classes that didn't have 
3185         them so that the new ClassInfo structs would be used when creating the Structures 
3186         in these classes.
3187
3188         * bridge/qt/qt_runtime.cpp:
3189         * bridge/qt/qt_runtime.h:
3190
3191 2011-10-03  Geoffrey Garen  <ggaren@apple.com>
3192
3193         Some JSValue cleanup
3194         https://bugs.webkit.org/show_bug.cgi?id=69320
3195
3196         Reviewed by Darin Adler.
3197
3198         * bindings/js/JSDOMBinding.cpp:
3199         (WebCore::valueToDate):
3200         * bindings/js/JSErrorHandler.cpp:
3201         (WebCore::JSErrorHandler::handleEvent):
3202         * bindings/js/JSEventListener.cpp:
3203         (WebCore::JSEventListener::handleEvent):
3204         * bindings/js/JSSQLTransactionCustom.cpp:
3205         (WebCore::JSSQLTransaction::executeSql):
3206         * bindings/js/JSSQLTransactionSyncCustom.cpp:
3207         (WebCore::JSSQLTransactionSync::executeSql):
3208         * bindings/js/ScriptValue.cpp:
3209         (WebCore::jsToInspectorValue):
3210         * bindings/js/SerializedScriptValue.cpp:
3211         (WebCore::CloneSerializer::dumpIfTerminal):
3212         * bindings/objc/WebScriptObject.mm:
3213         (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
3214         * bridge/jni/jsc/JNIUtilityPrivate.cpp:
3215         (JSC::Bindings::convertValueToJValue): Updated for JSC changes.
3216
3217 2011-10-04  Sadrul Habib Chowdhury  <sadrul@chromium.org>
3218
3219         Fix FrameView::scrollElementToRect to take already scrolled amount into consideration.
3220         https://bugs.webkit.org/show_bug.cgi?id=69220
3221
3222         Reviewed by Simon Fraser.
3223
3224         * page/FrameView.cpp:
3225         (WebCore::FrameView::scrollElementToRect):
3226
3227 2011-10-04  Anders Carlsson  <andersca@apple.com>
3228
3229         Ignore the warning about using 'override'.
3230
3231         * WebCore.vcproj/WebCore.vcproj:
3232
3233 2011-10-04  Sam Weinig  <sam@webkit.org>
3234
3235         Stub out WorkerScriptController::disableEval for v8 to fix the build.
3236
3237         * bindings/v8/WorkerScriptController.cpp:
3238         (WebCore::WorkerScriptController::disableEval):
3239         * bindings/v8/WorkerScriptController.h:
3240
3241 2011-10-04  Sam Weinig  <sam@webkit.org>
3242
3243         OVERRIDE seems to not be working for Windows. Remove it for now.
3244
3245         * dom/Document.h:
3246         * workers/WorkerContext.h:
3247
3248 2011-10-04  Sam Weinig  <sam@webkit.org>
3249
3250         Wean ContentSecurityPolicy from the Document
3251         https://bugs.webkit.org/show_bug.cgi?id=69387
3252
3253         Reviewed by Adam Barth.
3254
3255         * bindings/js/WorkerScriptController.cpp:
3256         (WebCore::WorkerScriptController::disableEval):
3257         * bindings/js/WorkerScriptController.h:
3258         * dom/Document.cpp:
3259         (WebCore::Document::disableEval):
3260         * dom/Document.h:
3261         * workers/WorkerContext.cpp:
3262         (WebCore::WorkerContext::disableEval):
3263         * workers/WorkerContext.h:
3264         * dom/ScriptExecutionContext.h:
3265         Add pure virtual disableEval to ScriptExecutionContext, so that ContentSecurityPolicy
3266         can call it for both Documents and WorkerContexts.
3267
3268         * page/ContentSecurityPolicy.cpp:
3269         (WebCore::ContentSecurityPolicy::didReceiveHeader):
3270         Call the new ScriptExecutionContext::disableEval() function.
3271
3272         (WebCore::ContentSecurityPolicy::reportViolation):
3273         Use ScriptExecutionContext::addMessage() instead of going directly to the DOMWindow.
3274
3275 2011-10-04  Anders Carlsson  <andersca@apple.com>
3276
3277         Move code into ScrollElasticityController::beginScrollGesture()
3278         https://bugs.webkit.org/show_bug.cgi?id=69383
3279
3280         Reviewed by John Sullivan.
3281
3282         * platform/mac/ScrollAnimatorMac.h:
3283         Add new ScrollElasticityControllerClient member functions.
3284
3285         * platform/mac/ScrollAnimatorMac.mm:
3286         (WebCore::ScrollAnimatorMac::isHorizontalScrollerPinnedToMinimumPosition):
3287         (WebCore::ScrollAnimatorMac::isHorizontalScrollerPinnedToMaximumPosition):
3288         (WebCore::ScrollAnimatorMac::stretchAmount):
3289         (WebCore::ScrollAnimatorMac::startSnapRubberbandTimer):
3290         (WebCore::ScrollAnimatorMac::stopSnapRubberbandTimer):
3291         Implement the new ScrollElasticityControllerClient member functions.
3292
3293         (WebCore::ScrollAnimatorMac::beginScrollGesture):
3294         Move code into ScrollElasticityController::beginScrollGesture and call it directly.
3295
3296         * platform/mac/ScrollElasticityController.h:
3297         Add new ScrollElasticityControllerClient member functions.
3298
3299         * platform/mac/ScrollElasticityController.mm:
3300         (WebCore::reboundDeltaForElasticDelta):
3301         (WebCore::ScrollElasticityController::beginScrollGesture):
3302         Set up the scroll gesture state.
3303
3304         (WebCore::ScrollElasticityController::stopSnapRubberbandTimer):
3305         New helper function.
3306
3307 2011-10-04  Scott Graham  <scottmg@chromium.org>
3308
3309         Add GAMEPAD feature flag
3310         https://bugs.webkit.org/show_bug.cgi?id=66859
3311
3312         Reviewed by Darin Fisher.
3313
3314         No new tests, as no new functionality yet.
3315
3316         * Configurations/FeatureDefines.xcconfig:
3317         * GNUmakefile.am:
3318         * features.pri:
3319
3320 2011-10-04  Fady Samuel  <fsamuel@chromium.org>
3321
3322         [Chromium] Moved files towards GTK removal
3323         https://bugs.webkit.org/show_bug.cgi?id=69229
3324
3325         Reviewed by Tony Chang.
3326
3327         * WebCore.gypi:
3328         * platform/chromium/PlatformThemeChromiumLinux.cpp: Renamed from Source/WebCore/platform/chromium/PlatformThemeChromiumGtk.cpp.
3329         (WebCore::PlatformThemeChromiumLinux::setScrollbarColors):
3330         (WebCore::clamp):
3331         (WebCore::PlatformThemeChromiumLinux::saturateAndBrighten):
3332         (WebCore::PlatformThemeChromiumLinux::outlineColor):
3333         (WebCore::PlatformThemeChromiumLinux::paintArrowButton):
3334         * platform/chromium/PlatformThemeChromiumLinux.h: Renamed from Source/WebCore/platform/chromium/PlatformThemeChromiumGtk.h.
3335         (WebCore::PlatformThemeChromiumLinux::thumbInactiveColor):
3336         (WebCore::PlatformThemeChromiumLinux::thumbActiveColor):
3337         (WebCore::PlatformThemeChromiumLinux::trackColor):
3338         (WebCore::PlatformThemeChromiumLinux::PlatformThemeChromiumLinux):
3339
3340 2011-10-04  James Robinson  <jamesr@chromium.org>
3341
3342         [chromium] Extract scheduling logic from CCThreadProxy to its own class
3343         https://bugs.webkit.org/show_bug.cgi?id=69049
3344
3345         Reviewed by Kenneth Russell.
3346
3347         This partially extracts the commit/draw scheduling from CCThreadProxy to a separate isolated class. This makes
3348         the commit/draw logic easier to test, understand and extend.
3349
3350         There is one subtle behavior change here to the way that the function formerly known as
3351         CCLayerTreeHost::setNeedsCommitAndRedraw works. Previously, this would trigger a begin frame message, if one
3352         wasn't pending, and then trigger a redraw if one wasn't pending. This was subtly wrong - the intent of that call
3353         is that a redraw should happen after the commit. It isn't useful to draw before the commit occurs. This patch
3354         changes the name of the function to setNeedsCommitThenRedraw and only requests a redraw after a commit occurs.
3355
3356         Covered by new CCSchedulerTest unit tests, CCLayerTreeHostTest unit tests, and compositing/ layout tests.
3357
3358         * WebCore.gypi:
3359         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
3360         (WebCore::CCLayerTreeHost::initialize):
3361         (WebCore::CCLayerTreeHost::setZoomAnimatorTransform):
3362         (WebCore::CCLayerTreeHost::setNeedsCommitThenRedraw):
3363         (WebCore::CCLayerTreeHost::setViewport):
3364         (WebCore::CCLayerTreeHost::setVisible):
3365         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
3366         * platform/graphics/chromium/cc/CCProxy.h:
3367         * platform/graphics/chromium/cc/CCScheduler.cpp: Added.
3368         (WebCore::CCScheduler::CCScheduler):
3369         (WebCore::CCScheduler::requestCommit):
3370         (WebCore::CCScheduler::requestCommitThenRedraw):
3371         (WebCore::CCScheduler::requestRedraw):
3372         (WebCore::CCScheduler::didCommit):
3373         (WebCore::CCScheduler::didDraw):
3374         * platform/graphics/chromium/cc/CCScheduler.h: Added.
3375         (WebCore::CCSchedulerClient::~CCSchedulerClient):
3376         (WebCore::CCScheduler::create):
3377         (WebCore::CCScheduler::commitPending):
3378         (WebCore::CCScheduler::redrawPending):
3379         (WebCore::CCScheduler::redrawAfterCommit):
3380         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
3381         (WebCore::CCSingleThreadProxy::setNeedsCommitThenRedraw):
3382         (WebCore::CCSingleThreadProxy::setNeedsRedraw):
3383         (WebCore::CCSingleThreadProxy::recreateContextIfNeeded):
3384         (WebCore::CCSingleThreadProxy::doComposite):
3385         * platform/graphics/chromium/cc/CCSingleThreadProxy.h:
3386         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
3387         (WebCore::CCThreadProxySchedulerClient::create):
3388         (WebCore::CCThreadProxySchedulerClient::~CCThreadProxySchedulerClient):
3389         (WebCore::CCThreadProxySchedulerClient::scheduleBeginFrameAndCommit):
3390         (WebCore::CCThreadProxySchedulerClient::scheduleDrawAndPresent):
3391         (WebCore::CCThreadProxySchedulerClient::CCThreadProxySchedulerClient):
3392         (WebCore::CCThreadProxy::CCThreadProxy):
3393         (WebCore::CCThreadProxy::compositeAndReadback):
3394         (WebCore::CCThreadProxy::initializeLayerRenderer):
3395         (WebCore::CCThreadProxy::setNeedsCommit):
3396         (WebCore::CCThreadProxy::setNeedsCommitOnCCThread):
3397         (WebCore::CCThreadProxy::setNeedsCommitThenRedraw):
3398         (WebCore::CCThreadProxy::setNeedsCommitThenRedrawOnCCThread):
3399         (WebCore::CCThreadProxy::setNeedsRedraw):
3400         (WebCore::CCThreadProxy::setNeedsRedrawOnCCThread):
3401         (WebCore::CCThreadProxy::finishAllRenderingOnCCThread):
3402         (WebCore::CCThreadProxy::obtainBeginFrameAndCommitTaskFromCCThread):
3403         (WebCore::CCThreadProxy::createBeginFrameAndCommitTaskOnCCThread):
3404         (WebCore::CCThreadProxy::beginFrameAndCommit):
3405         (WebCore::CCThreadProxy::commitOnCCThread):
3406         (WebCore::CCThreadProxy::drawLayersAndPresentOnCCThread):
3407         (WebCore::CCThreadProxy::initializeImplOnCCThread):
3408         * platform/graphics/chromium/cc/CCThreadProxy.h:
3409
3410 2011-10-04  Alexey Proskuryakov  <ap@apple.com>
3411
3412         https://bugs.webkit.org/show_bug.cgi?id=67774
3413         PDF in a frameset is not displayed, always downloads
3414
3415         Reviewed by Darin Adler.
3416
3417         * WebCore.exp.in:
3418         * WebCore.xcodeproj/project.pbxproj:
3419         Added exports necessary to subclass a ScrollableArea.
3420
3421 2011-10-04  Anders Carlsson  <andersca@apple.com>
3422
3423         ScrollElasticityController should keep track of the rubberband timer state
3424         https://bugs.webkit.org/show_bug.cgi?id=69381
3425
3426         Reviewed by Sam Weinig.
3427
3428         Add a m_snapRubberbandTimerIsActive member variable to ScrollElasticityController
3429         and use it instead of checking whether the m_snapRubberbandTimer is active.
3430
3431         Eventually, ScrollElasticityControllerClient will have two member functions for starting
3432         and stopping the timer, and the ScrollElasticityController will call them at the appropriate times.
3433
3434         * platform/mac/ScrollAnimatorMac.mm:
3435         (WebCore::ScrollAnimatorMac::handleWheelEvent):
3436         (WebCore::ScrollAnimatorMac::beginScrollGesture):
3437         It's OK to stop the timer unconditionally.
3438
3439         (WebCore::ScrollAnimatorMac::snapRubberBand):
3440         (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
3441         * platform/mac/ScrollElasticityController.h:
3442         * platform/mac/ScrollElasticityController.mm:
3443         (WebCore::ScrollElasticityController::ScrollElasticityController):
3444
3445 2011-10-04  Anders Carlsson  <andersca@apple.com>
3446
3447         Move all rubber-banding related member variables to ScrollElasticityController
3448         https://bugs.webkit.org/show_bug.cgi?id=69379
3449
3450         Reviewed by Dan Bernstein.
3451
3452         * platform/mac/ScrollAnimatorMac.h:
3453         * platform/mac/ScrollAnimatorMac.mm:
3454         (WebCore::ScrollAnimatorMac::ScrollAnimatorMac):
3455         (WebCore::ScrollAnimatorMac::handleWheelEvent):
3456         (WebCore::ScrollAnimatorMac::smoothScrollWithEvent):
3457         (WebCore::ScrollAnimatorMac::beginScrollGesture):
3458         (WebCore::ScrollAnimatorMac::snapRubberBand):
3459         (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
3460         * platform/mac/ScrollElasticityController.h:
3461         * platform/mac/ScrollElasticityController.mm:
3462         (WebCore::ScrollElasticityController::ScrollElasticityController):
3463
3464 2011-10-04  Anders Carlsson  <andersca@apple.com>
3465
3466         Build fixes for everyone.
3467
3468         * platform/chromium/ScrollAnimatorChromiumMac.h:
3469         * platform/chromium/ScrollAnimatorChromiumMac.mm:
3470         (WebCore::isScrollingLeftAndShouldNotRubberBand):
3471         (WebCore::isScrollingRightAndShouldNotRubberBand):
3472         (WebCore::ScrollAnimatorChromiumMac::smoothScrollWithEvent):
3473         Fix Chromium build.
3474
3475         * platform/gtk/PlatformWheelEventGtk.cpp:
3476         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
3477         Fix GTK+ build.
3478
3479 2011-10-04  Anders Carlsson  <andersca@apple.com>
3480