2009-10-27 Chris Fleizach Reviewed by Darin Adler. WAI-ARIA: add support for 'option' role https://bugs.webkit.org/show_bug.cgi?id=30843 Test: accessibility/aria-option-role.html * accessibility/AccessibilityListBoxOption.h: (WebCore::AccessibilityListBoxOption::canHaveChildren): * accessibility/AccessibilityRenderObject.cpp: (WebCore::RoleEntry::): (WebCore::AccessibilityRenderObject::canHaveChildren): 2009-10-28 Jens Alfke Reviewed by Eric Seidel. Fix GCC compiler warnings in WebCore, and enable -Wall and -Werror for Chromium build. https://bugs.webkit.org/show_bug.cgi?id=30716 * WebCore.gyp/WebCore.gyp: Enable "chromium_code" flag, just on Mac build for now. * accessibility/AccessibilityRenderObject.cpp: (WebCore::createARIARoleMap): Fix struct visibiity warning. * bindings/v8/ScriptCallStack.h: Fix out-of-order member initialization warning. * bindings/v8/V8Collection.h: (WebCore::getV8Object): Function in header should not be 'static' (fixes unused-static warning.) * bindings/v8/V8DOMWrapper.cpp: (WebCore::V8DOMWrapper::convertNewNodeToV8Object): Fix signed/unsigned comparison warning. * bindings/v8/V8GCController.cpp: (WebCore::ObjectGrouperVisitor::applyGrouping): Fix unused-variable warning. * css/CSSPrimitiveValueMappings.h: (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): Enable ListButtonPart case to avoid warning about missing cases in 'switch' statement. * editing/EditorCommand.cpp: (WebCore::createCommandMap): Fix struct visibiity warning. * platform/graphics/skia/PlatformContextSkia.cpp: (PlatformContextSkia::State::State): Fix out-of-order member initialization warning. * rendering/RenderMediaControlsChromium.cpp: (WebCore::RenderMediaControlsChromium::shouldRenderMediaControlPart): Add empty 'default' case in 'switch' statement to avoid missing-case warning. (WebCore::RenderMediaControlsChromium::paintMediaControlsPart): Ditto. * xml/XPathFunctions.cpp: (WebCore::XPath::createFunctionMap): Fix struct visibiity warning. 2009-10-28 Adam Barth Reviewed by Darin Adler. REGRESSION: crashes in WebCore::RedirectScheduler::timerFired(WebCore::Timer*) https://bugs.webkit.org/show_bug.cgi?id=30839 Added null check for the case when the frame is detached from the page. * loader/RedirectScheduler.cpp: (WebCore::RedirectScheduler::timerFired): 2009-10-28 Joanmarie Diggs Reviewed by Xan Lopez. https://bugs.webkit.org/show_bug.cgi?id=30817 Use parentObjectUnignored instead of parentObject in webkit_accessible_get_parent Also removes the hack I had originally added to solve bug 25411, because the fix here is what I should have done in the first place. * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp: (webkit_accessible_get_parent): 2009-10-28 Dmitry Titov Reviewed by David Levin. https://bugs.webkit.org/show_bug.cgi?id=30805 Add MessageQueue::removeIf(Predicate&) to remove certain tasks without pulling them from the queue. Existing Database tests cover this, no change in functionality. * storage/DatabaseThread.cpp: (WebCore::SameDatabasePredicate::SameDatabasePredicate): Added predicate that flags the tasks belonging to a specified database. (WebCore::SameDatabasePredicate::operator()): (WebCore::DatabaseThread::unscheduleDatabaseTasks): changed to use the new removeIf method. 2009-10-28 Pavel Feldman Reviewed by Timothy Hatcher. Web Inspector: Glue subsequent timeline records with same category and title together. https://bugs.webkit.org/show_bug.cgi?id=30885 * English.lproj/localizedStrings.js: * inspector/front-end/TimelinePanel.js: (WebInspector.TimelinePanel.prototype.addRecordToTimeline): (WebInspector.TimelinePanel.prototype._formatRecord): (WebInspector.TimelineRecordTreeElement.prototype.onattach): (WebInspector.TimelineRecordTreeElement.prototype.refresh): 2009-10-28 Gustavo Noronha Silva Reviewed by Xan Lopez. [GTK] Fails new test fast/js/navigator-language.html https://bugs.webkit.org/show_bug.cgi?id=30440 Reimplement WebCore::defaultLanguage to account for changes in locale done by setLocale. Already existing test: fast/js/navigator-language.html * platform/gtk/Language.cpp: (WebCore::defaultLanguage): 2009-10-28 Eric Carlson Reviewed by Simon Fraser. Can't exit full screen mode or restart movie after pressing command -R. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::removedFromDocument): (WebCore::HTMLMediaElement::documentWillBecomeInactive): Exit from fullscreen if necessary. * html/HTMLMediaElement.h: 2009-10-28 Alexey Proskuryakov Unreviewed - a trivial fix to get Windows bots running. https://bugs.webkit.org/show_bug.cgi?id=30841 WebKit should not pass Referer header through a redirect to a non-secure site * platform/network/cf/ResourceRequestCFNet.cpp: (WebCore::setHeaderFields): Don't try to access empty vector's data. 2009-10-28 Joanmarie Diggs Reviewed by Xan Lopez. https://bugs.webkit.org/show_bug.cgi?id=25897 [Gtk] Extraneous object of ROLE_PANEL in hierarchy for entries Remove the extraneous object of ROLE_PANEL. * accessibility/gtk/AccessibilityObjectAtk.cpp: (AccessibilityObject::accessibilityPlatformIncludesObject): 2009-10-28 Jonathan Dixon Reviewed by Eric Seidel. Bug 30547: (Chromium) searchbox not rendered properly due to the css property -webkit-border-radius https://bugs.webkit.org/show_bug.cgi?id=30547 Test: fast/css/text-input-with-webkit-border-radius.html * rendering/RenderThemeChromiumWin.cpp: (WebCore::RenderThemeChromiumWin::paintTextFieldInternal): Implemented rounded border rendering in Chromium Windows theme renderer. 2009-10-28 Pavel Feldman Reviewed by Timothy Hatcher. Web Inspector: Pull items collections from resources panel and timeline panel into AbstractTimelinePanel. https://bugs.webkit.org/show_bug.cgi?id=30875 * inspector/front-end/AbstractTimelinePanel.js: (WebInspector.AbstractTimelinePanel): (WebInspector.AbstractTimelinePanel.prototype.populateSidebar): (WebInspector.AbstractTimelinePanel.prototype.createItemTreeElement): (WebInspector.AbstractTimelinePanel.prototype.createItemGraph): (WebInspector.AbstractTimelinePanel.prototype._showCategory): (WebInspector.AbstractTimelinePanel.prototype._hideCategory): (WebInspector.AbstractTimelinePanel.prototype.filter): (WebInspector.AbstractTimelinePanel.prototype._createGraph): (WebInspector.AbstractTimelinePanel.prototype.updateMainViewWidth): (WebInspector.AbstractTimelinePanel.prototype.refresh): (WebInspector.AbstractTimelinePanel.prototype.reset): (WebInspector.AbstractTimelinePanel.prototype.get calculator): (WebInspector.AbstractTimelinePanel.prototype.set calculator): (WebInspector.AbstractTimelinePanel.prototype.addItem): (WebInspector.AbstractTimelinePanel.prototype.removeItem): (WebInspector.AbstractTimelinePanel.prototype.refreshItem): (WebInspector.AbstractTimelinePanel.prototype.revealAndSelectItem): (WebInspector.AbstractTimelinePanel.prototype.sortItems): (WebInspector.AbstractTimelinePanel.prototype.adjustScrollPosition): (WebInspector.AbstractTimelineCategory): (WebInspector.AbstractTimelineCategory.prototype.toString): * inspector/front-end/ResourceCategory.js: (WebInspector.ResourceCategory): * inspector/front-end/ResourcesPanel.js: (WebInspector.ResourcesPanel): (WebInspector.ResourcesPanel.prototype.createItemTreeElement): (WebInspector.ResourcesPanel.prototype.createItemGraph): (WebInspector.ResourcesPanel.prototype.isCategoryVisible): (WebInspector.ResourcesPanel.prototype.populateSidebar): (WebInspector.ResourcesPanel.prototype.get searchableViews): (WebInspector.ResourcesPanel.prototype.get searchResultsSortFunction.sortFuction): (WebInspector.ResourcesPanel.prototype.get searchResultsSortFunction): (WebInspector.ResourcesPanel.prototype.searchMatchFound): (WebInspector.ResourcesPanel.prototype.searchCanceled): (WebInspector.ResourcesPanel.prototype.performSearch): (WebInspector.ResourcesPanel.prototype.refresh): (WebInspector.ResourcesPanel.prototype.reset): (WebInspector.ResourcesPanel.prototype.removeResource): (WebInspector.ResourcesPanel.prototype.addMessageToResource): (WebInspector.ResourcesPanel.prototype.clearMessages): (WebInspector.ResourcesPanel.prototype.refreshResource): (WebInspector.ResourcesPanel.prototype.recreateViewForResourceIfNeeded): (WebInspector.ResourcesPanel.prototype.showResource): (WebInspector.ResourcesPanel.prototype._sortResourcesIfNeeded): (WebInspector.ResourcesPanel.prototype._toggleLargerResources): (WebInspector.ResourcesPanel.prototype._toggleResourceTracking): (WebInspector.ResourcesPanel.prototype.get _resources): (WebInspector.ResourceTimeCalculator.prototype._upperBound): * inspector/front-end/TimelinePanel.js: (WebInspector.TimelinePanel): (WebInspector.TimelinePanel.prototype.get categories): (WebInspector.TimelinePanel.prototype.populateSidebar): (WebInspector.TimelinePanel.prototype.addRecordToTimeline): (WebInspector.TimelinePanel.prototype.createItemTreeElement): (WebInspector.TimelinePanel.prototype.createItemGraph): (WebInspector.TimelinePanel.prototype._formatRecord): (WebInspector.TimelineCategory): * inspector/front-end/inspector.css: * inspector/front-end/inspector.html: 2009-10-28 Kelly Norton Reviewed by Pavel Feldman. Resets InspectorFrontend in InspectorTimelineAgent instead of removing it so that it remains active on refreshs and page transitions. https://bugs.webkit.org/show_bug.cgi?id=30874 * inspector/InspectorController.cpp: (WebCore::InspectorController::setFrontendProxyObject): * inspector/InspectorTimelineAgent.cpp: (WebCore::InspectorTimelineAgent::resetFrontendProxyObject): * inspector/InspectorTimelineAgent.h: 2009-10-27 Shinichiro Hamaji Reviewed by Darin Adler. Provide a way to get counter values with layoutTestContoller https://bugs.webkit.org/show_bug.cgi?id=30555 Expose WebCore::counterValueForElement as a WebCore API. * WebCore.base.exp: * rendering/RenderTreeAsText.cpp: (WebCore::writeCounterValuesFromChildren): (WebCore::counterValueForElement): * rendering/RenderTreeAsText.h: 2009-10-28 Nate Chapin Unreviewed, Chromium build fix for r50225. * loader/FrameLoader.cpp: (WebCore::FrameLoader::defaultObjectContentType): 2009-10-28 Eric Z. Ayers Reviewed by Pavel Feldman. Adds InspectorTimelineAgent instrumentation for encountering a