Fixes a regression where the Page's debugger would not be reattached
when a new JSDOMWindow is created.

Reviewed by Sam Weinig.

* bindings/js/kjs_proxy.cpp:
(WebCore::KJSProxy::clear): Call attachDebugger after creating the JSDOMWindow.
* history/CachedPage.cpp:
(WebCore::CachedPage::restore): For the case where the CachedPage doesn't
contain a window, reattach the debugger to the new JSDOMWindow by calling
proxy->attachDebugger. Also restore the setPageGroupIdentifier.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32690 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove .idl and .in files from WebCore's framework Resources.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32691 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make the exceptions that the InspectorController catches log the
original file and line number, if present on the exception object.

Reviewed by Adam Roben.

* page/InspectorController.cpp:
(WebCore::InspectorController::callFunction): Pass the context to HANDLE_EXCEPTION.
(WebCore::InspectorController::~InspectorController): Ditto.
(WebCore::InspectorController::scriptObjectReady): Ditto.
(WebCore::InspectorController::addScriptResource): Ditto.
(WebCore::InspectorController::updateScriptResourceRequest): Ditto.
(WebCore::InspectorController::updateScriptResourceResponse): Ditto.
(WebCore::InspectorController::updateScriptResource): Ditto.
(WebCore::InspectorController::addDatabaseScriptResource): Ditto.
(WebCore::InspectorController::addScriptConsoleMessage): Ditto.
(WebCore::InspectorController::handleException): Take a context. Pull the line
and sourceURL properties off the exception if it is an object.
* page/InspectorController.h: Change handleException to take a context.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-04-29  Kevin McCullough  <kmccullough@apple.com>

        Reviewed by Geoff.

        -<rdar://problem/5770054> JavaScript profiler (10928)
        -Keep call count.

        * profiler/FunctionCallProfile.cpp:
        (KJS::FunctionCallProfile::FunctionCallProfile):
        (KJS::FunctionCallProfile::didExecute): Implements call count and fixed a bug where a stackIndex
        of 0 was causing the assert to be hit.
        (KJS::FunctionCallProfile::stopProfiling):
        (KJS::FunctionCallProfile::endAndRecordCall):
        * profiler/FunctionCallProfile.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32693 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-04-29  Beth Dakin  <bdakin@apple.com>

        Reviewed by Alice.

        Initial implementation of the following ARIA roles: button, 
        checkbox, heading, link, radio, textbox.

        * html/HTMLAttributeNames.in: Add 'role' to list of attributes.

        * page/AccessibilityObject.cpp:
         When an ARIA role is set, the role overrides whatever the actual 



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32694 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore:

2008-04-29  David Hyatt  <hyatt@apple.com>

        Implement the new box-reflect property in CSS.  This property enables real-time reflections on
        objects (yes you can reflect <video>!).

        Reviewed by Dan Bernstein

        Test cases added in fast/reflections/

        * GNUmakefile.am:
        * WebCore.pro:
        * WebCore.xcodeproj/project.pbxproj:
        * WebCoreSources.bkl:
        * css/CSSComputedStyleDeclaration.cpp:
        (WebCore::):
        (WebCore::valueForReflection):
        (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
        * css/CSSParser.cpp:
        (WebCore::CSSParser::parseValue):
        (WebCore::CSSParser::parseReflect):
        (WebCore::BorderImageParseContext::commitBorderImage):
        (WebCore::CSSParser::parseBorderImage):
        (WebCore::parseGradientColorStop):
        (WebCore::CSSParser::parseTransform):
        * css/CSSParser.h:
        * css/CSSPropertyNames.in:
        * css/CSSReflectValue.cpp: Added.
        (WebCore::CSSReflectValue::cssText):
        * css/CSSReflectValue.h: Added.
        (WebCore::):
        (WebCore::CSSReflectValue::CSSReflectValue):
        (WebCore::CSSReflectValue::direction):
        (WebCore::CSSReflectValue::offset):
        (WebCore::CSSReflectValue::mask):
        (WebCore::CSSReflectValue::setDirection):
        (WebCore::CSSReflectValue::setOffset):
        (WebCore::CSSReflectValue::setMask):
        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::adjustRenderStyle):
        (WebCore::CSSStyleSelector::applyProperty):
        (WebCore::CSSStyleSelector::mapNinePieceImage):
        * css/CSSStyleSelector.h:
        * rendering/InlineFlowBox.cpp:
        (WebCore::InlineFlowBox::placeBoxesVertically):
        (WebCore::InlineFlowBox::paintMask):
        * rendering/Length.h:
        (WebCore::Length::calcFloatValue):
        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::overflowHeight):
        (WebCore::RenderBlock::overflowWidth):
        (WebCore::RenderBlock::overflowLeft):
        (WebCore::RenderBlock::overflowTop):
        (WebCore::RenderBlock::overflowRect):
        (WebCore::RenderBlock::layoutBlock):
        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::setStyle):
        (WebCore::RenderBox::paintMask):
        (WebCore::RenderBox::imageChanged):
        (WebCore::RenderBox::computeAbsoluteRepaintRect):
        * rendering/RenderFlexibleBox.cpp:
        (WebCore::RenderFlexibleBox::layoutBlock):
        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::RenderLayer):
        (WebCore::RenderLayer::~RenderLayer):
        (WebCore::RenderLayer::updateLayerPositions):
        (WebCore::RenderLayer::enclosingPositionedAncestor):
        (WebCore::RenderLayer::enclosingTransformedAncestor):
        (WebCore::RenderLayer::isTransparent):
        (WebCore::transparencyClipBox):
        (WebCore::RenderLayer::operator delete):
        (WebCore::RenderLayer::destroy):
        (WebCore::RenderLayer::removeOnlyThisLayer):
        (WebCore::RenderLayer::insertOnlyThisLayer):
        (WebCore::RenderLayer::paintLayer):
        (WebCore::RenderLayer::updateZOrderLists):
        (WebCore::RenderLayer::updateOverflowList):
        (WebCore::RenderLayer::collectLayers):
        (WebCore::RenderLayer::shouldBeOverflowOnly):
        (WebCore::RenderLayer::styleChanged):
        (WebCore::RenderLayer::reflectionLayer):
        (WebCore::RenderLayer::createReflection):
        (WebCore::RenderLayer::updateReflectionStyle):
        * rendering/RenderLayer.h:
        (WebCore::RenderLayer::hasReflection):
        (WebCore::RenderLayer::reflection):
        (WebCore::RenderLayer::paintingInsideReflection):
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::RenderObject):
        (WebCore::RenderObject::requiresLayer):
        (WebCore::RenderObject::setStyle):
        (WebCore::RenderObject::updateImage):
        (WebCore::RenderObject::reflectionBox):
        (WebCore::RenderObject::reflectionOffset):
        * rendering/RenderObject.h:
        (WebCore::RenderObject::hasTransform):
        (WebCore::RenderObject::setHasReflection):
        (WebCore::RenderObject::hasReflection):
        * rendering/RenderReplica.cpp: Added.
        (WebCore::RenderReplica::RenderReplica):
        (WebCore::RenderReplica::~RenderReplica):
        (WebCore::RenderReplica::layout):
        (WebCore::RenderReplica::calcPrefWidths):
        (WebCore::RenderReplica::paint):
        * rendering/RenderReplica.h: Added.
        (WebCore::RenderReplica::renderName):
        (WebCore::RenderReplica::requiresLayer):
        * rendering/RenderStyle.cpp:
        (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
        (WebCore::StyleRareNonInheritedData::operator==):
        (WebCore::StyleRareNonInheritedData::reflectionDataEquivalent):
        (WebCore::RenderStyle::diff):
        (WebCore::RenderStyle::applyTransform):
        * rendering/RenderStyle.h:
        (WebCore::TranslateTransformOperation::apply):
        (WebCore::StyleReflection::StyleReflection):
        (WebCore::StyleReflection::operator==):
        (WebCore::StyleReflection::operator!=):
        (WebCore::StyleReflection::direction):
        (WebCore::StyleReflection::offset):
        (WebCore::StyleReflection::mask):
        (WebCore::StyleReflection::setDirection):
        (WebCore::StyleReflection::setOffset):
        (WebCore::StyleReflection::setMask):
        (WebCore::RenderStyle::boxReflect):
        (WebCore::RenderStyle::setBoxReflect):
        (WebCore::RenderStyle::initialBoxReflect):
        * rendering/RenderTable.cpp:
        (WebCore::RenderTable::layout):
        (WebCore::RenderTable::paintMask):
        * rendering/RenderTableCell.cpp:
        (WebCore::RenderTableCell::requiresLayer):
        (WebCore::RenderTableCell::paintMask):

LayoutTests:

2008-04-29  David Hyatt  <hyatt@apple.com>

        Implement support for the new box-reflect property.  Tests of the new property.

        Reviewed by Dan Bernstein

        * fast/reflections: Added.
        * fast/reflections/reflection-computed-style-expected.txt: Added.
        * fast/reflections/reflection-computed-style.html: Added.
        * fast/reflections/reflection-direction.html: Added.
        * fast/reflections/reflection-masks.html: Added.
        * fast/reflections/reflection-nesting.html: Added.
        * fast/reflections/resources: Added.
        * fast/reflections/resources/kate.png: Added.
        * fast/reflections/resources/vignette-mask.png: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32695 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add reflection example photo.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32697 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Fix a Windows build error

        * WebScriptCallFrame.cpp:
        (WebScriptCallFrame::variableNames): Don't use ::adopt now that
        PropertyNameArray has no swap function.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32698 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Windows build fix

WebCore:

        Windows build fix

        This removes COMPtr::operator&, which didn't jive with HashTable. It
        is replaced by COMPtr::adoptionPointer.

        Discussed with Darin Adler and Anders Carlsson.

        * platform/win/COMPtr.h: Replaced operator& with adoptionPointer.

WebKit/win:

        Windows build fix

        Replaced uses of COMPtr::operator& with COMPtr::adoptionPointer.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32699 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore:

2008-04-29  Greg Bolsinga  <bolsinga@apple.com>

        Reviewed by Darin.

        Wrapped Dashboard code with ENABLE(DASHBOARD_SUPPORT)

        * wtf/Platform.h:

WebCore:

2008-04-29  Greg Bolsinga  <bolsinga@apple.com>

        Reviewed by Darin.

        Wrapped Dashboard code with ENABLE(DASHBOARD_SUPPORT)

        * DerivedSources.make:
        * WebCore.DashboardSupport.exp: Added.
        * WebCore.base.exp:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/JSDOMWindowCustom.cpp:
        (WebCore::JSDOMWindow::setLocation):
        * css/CSSComputedStyleDeclaration.cpp:
        (WebCore::):
        (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
        * css/CSSParser.cpp:
        (WebCore::CSSParser::parseValue):
        * css/CSSPrimitiveValue.cpp:
        (WebCore::CSSPrimitiveValue::cleanup):
        (WebCore::CSSPrimitiveValue::cssText):
        * css/CSSPropertyNames.in:
        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::applyProperty):
        * css/DashboardRegion.h:
        * css/DashboardSupportCSSPropertyNames.in: Added.
        * dom/DOMImplementation.cpp:
        (WebCore::DOMImplementation::createDocument):
        * dom/Document.cpp:
        (WebCore::Document::Document):
        (WebCore::Document::importNode):
        * dom/Document.h:
        * html/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::fill):
        (WebCore::CanvasRenderingContext2D::stroke):
        (WebCore::CanvasRenderingContext2D::clip):
        * html/CanvasRenderingContext2D.h:
        * html/HTMLCanvasElement.cpp:
        * html/HTMLCanvasElement.h:
        * page/Chrome.cpp:
        * page/ChromeClient.h:
        * page/Frame.cpp:
        (WebCore::Frame::paint):
        * page/Frame.h:
        * page/FrameView.cpp:
        (WebCore::FrameView::layout):
        * page/FrameView.h:
        * page/Settings.cpp:
        (WebCore::Settings::Settings):
        * page/Settings.h:
        * page/mac/EventHandlerMac.mm:
        (WebCore::EventHandler::needsKeyboardEventDisambiguationQuirks):
        * page/mac/FrameMac.mm:
        * page/mac/WebDashboardRegion.h:
        * page/mac/WebDashboardRegion.m:
        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::scrollToOffset):
        (WebCore::RenderLayer::setHasHorizontalScrollbar):
        (WebCore::RenderLayer::setHasVerticalScrollbar):
        (WebCore::RenderLayer::updateScrollInfoAfterLayout):
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::setStyle):
        * rendering/RenderObject.h:
        * rendering/RenderStyle.cpp:
        (WebCore::StyleRareNonInheritedData::operator==):
        (WebCore::RenderStyle::diff):
        * rendering/RenderStyle.h:
        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::send):
        (WebCore::XMLHttpRequest::setRequestHeader):

WebKit/mac:

2008-04-29  Greg Bolsinga  <bolsinga@apple.com>

        Reviewed by Darin.

        Wrapped Dashboard code with ENABLE(DASHBOARD_SUPPORT)

        * WebCoreSupport/WebChromeClient.h:
        * WebCoreSupport/WebChromeClient.mm:
        * WebView/WebClipView.m:
        (-[WebClipView scrollWheel:]):
        * WebView/WebHTMLView.mm:
        (-[WebHTMLView addMouseMovedObserver]):
        (-[WebHTMLView removeMouseMovedObserver]):
        (-[WebHTMLView acceptsFirstMouse:]):
        * WebView/WebUIDelegatePrivate.h:
        * WebView/WebView.mm:
        (-[WebViewPrivate init]):
        * WebView/WebViewPrivate.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Windows build fixes

        Replace COMPtr::operator& with COMPtr::adoptionPointer.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Fix assertion on launch on Windows

        * platform/graphics/win/FontPlatformData.h: Pass
        WTF::HashTableDeletedValue to the m_font constructor instead of a
        bogus -1 value. This is needed because m_font is a RefPtr.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32702 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fixed ChangeLog order


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Restore the beloved COMPtr::operator&

WebCore:

        Restore the beloved COMPtr::operator&

        * platform/win/COMPtr.h: Removed the HashTableDeletedValueType
        constructor and isHashTableDeletedValue and hashTableDeletedValue
        functions.
        (WTF::): Changed constructDeletedValue to play nicely with
        COMPtr::operator&.

WebKit/win:

        Restore the beloved COMPtr::operator&

WebKitTools:

        Restore the beloved COMPtr::operator&


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-04-29  Anatoli Papirovski  <apapirovski@mac.com>

        Reviewed by Dan Bernstein.

        Modified the SVG test case for RGB and RGBA parsing - mixing percentage and 
        numerical values is illegal.

        * svg/custom/rgbcolor-syntax.svg:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-04-29  Mark Rowe  <mrowe@apple.com>

        Reviewed by David Harrison.

        Ensure that WebDynamicScrollBarsView defines WebCoreScrollbarAlwaysOn to keep Mail building.

        * WebKit.exp:
        * WebView/WebDynamicScrollBarsView.h:
        * WebView/WebDynamicScrollBarsView.m:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-04-29  Alp Toker  <alp@nuanti.com>

        GTK+ build fix attempt following breakage in r32700 which
        conditionalised dashboard support.

        * GNUmakefile.am:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Added missing return.        

        * platform/win/COMPtr.h:
        (WTF::):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32711 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Top:

        BUILD FIX for ENABLE(DASHBOARD_SUPPORT)

        * configure.ac: Added conditional for ENABLE_DASHBOARD_SUPPORT.

JavaScriptCore:

        BUILD FIX for ENABLE(DASHBOARD_SUPPORT)

        * wtf/Platform.h: Defined ENABLE(DASHBOARD_SUPPORT) to 1 only for
        PLATFORM(MAC) and PLATFORM(WIN).  Changed default to 0 for other
        ports.

WebCore:

        BUILD FIX for ENABLE(DASHBOARD_SUPPORT)

        * DerivedSources.make: Removed duplication of targets for
        generating CSSPropertyNames.h and CSSValueKeywords.h.
        * GNUmakefile.am: Ditto.  Added support for ENABLE_DASHBOARD_SUPPORT.
        * WebCore.pro: Added support for ENABLE_DASHBOARD_SUPPORT.
        Made both SVG and non-SVG variables of GENERATOR 6-A use new
        DASHBOARDSUPPORTCSSPROPERTIES variable.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Another BUILD FIX for ENABLE(DASHBOARD_SUPPORT)

        * dom/make_names.pl: Added #if ENABLE(DASHBOARD_SUPPORT) to Dashboard code.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32713 268f45cc-cd09-0410-ab3c-d52691b4dbfc