1. 05 Feb, 2009 40 commits
    • simon.fraser@apple.com's avatar
      2009-02-05 Simon Fraser <simon.fraser@apple.com> · 9317de82
      simon.fraser@apple.com authored
              Reviewed by Dan Bernstein
      
              https://bugs.webkit.org/show_bug.cgi?id=23362
      
              If the WebHTMLView uses accelerated compositing, we need for force
              the on-screen capture path and also force animations to start with -display
              since the DRT window has autodisplay disabled.
      
              * DumpRenderTree/mac/PixelDumpSupportMac.mm:
              (createBitmapContextFromWebView):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9317de82
    • simon.fraser@apple.com's avatar
      2009-02-05 Simon Fraser <simon.fraser@apple.com> · 7d00286b
      simon.fraser@apple.com authored
              Reviewed by Anders Carlsson
      
              getAnimatedStyleForRenderer() should not create a new
              CompositeAnimation if the object isn't already animating, and
              it should just fall back to returning renderer->style().
      
              * page/animation/AnimationController.cpp:
              (WebCore::AnimationControllerPrivate::getAnimatedStyleForRenderer):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7d00286b
    • aroben@apple.com's avatar
      Build fix · 2b88e782
      aroben@apple.com authored
              Rubberstamped by Sam Weinig.
      
              * wtf/TypeTraits.h: Include Platform.h, since this header uses macros
              defined there.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b88e782
    • simon.fraser@apple.com's avatar
      2009-02-05 Simon Fraser <simon.fraser@apple.com> · 443915df
      simon.fraser@apple.com authored
              Fix build when ACCELERATED_COMPOSITING is turned on.
      
              Give RenderLayerBacking some love after the great
              RenderBoxModelObject split.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      443915df
    • simon.fraser@apple.com's avatar
      2009-02-05 Simon Fraser <simon.fraser@apple.com> · 4cbd8cdd
      simon.fraser@apple.com authored
              Fix build when ACCELERATED_COMPOSITING is turned on.
      
              writeIndent() needs to be static to avoid warnings on some OSes,
              and remove unused CAToTransform3D() method.
      
              * platform/graphics/GraphicsLayer.cpp:
              (WebCore::writeIndent):
              * platform/graphics/mac/GraphicsLayerCA.mm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4cbd8cdd
    • simon.fraser@apple.com's avatar
      2009-02-05 Simon Fraser <simon.fraser@apple.com> · c221a8e3
      simon.fraser@apple.com authored
              Reviewed by Anders Carlsson
      
              Add some methods to the TransformOperation classes that are required
              by GraphicsLayer when ACCELERATED_COMPOSITING is turned on.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40702 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c221a8e3
    • simon.fraser@apple.com's avatar
      2009-02-05 Simon Fraser <simon.fraser@apple.com> · 22c1b3ec
      simon.fraser@apple.com authored
              Minor clenaup: fix brace style in CompositeAnimationPrivate::updateTransitions(),
              and correct a usage of UNUSED_PARAM().
      
              * page/animation/CompositeAnimation.cpp:
              (WebCore::CompositeAnimationPrivate::updateTransitions):
              * page/animation/ImplicitAnimation.cpp:
              (WebCore::ImplicitAnimation::startAnimation):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22c1b3ec
    • simon.fraser@apple.com's avatar
      2009-02-05 Simon Fraser <simon.fraser@apple.com> · 14fd3ede
      simon.fraser@apple.com authored
              Fix build when ACCELERATED_COMPOSITING is turned on.
      
              animationOfPropertyIsAccelerated() needs to be public because
              it is called from AnimationController.
      
              * page/animation/AnimationBase.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      14fd3ede
    • simon.fraser@apple.com's avatar
      2009-02-05 Simon Fraser <simon.fraser@apple.com> · 69a12829
      simon.fraser@apple.com authored
              Reviewed by Anders Carlsson
      
              Fix mis-typed enum value which is hidden inside #ifdefs so didn't break
              the build.
      
              * page/FrameView.cpp:
              (WebCore::FrameView::updateCompositingLayers):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40699 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69a12829
    • bfulgham@webkit.org's avatar
      2009-02-05 Brent Fulgham <bfulgham@webkit.org> · cd8039b4
      bfulgham@webkit.org authored
      Reviewed by Sam Weinig.
      Build fix.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40698 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd8039b4
    • zimmermann@webkit.org's avatar
      · b6dfa178
      zimmermann@webkit.org authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40697 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b6dfa178
    • weinig@apple.com's avatar
      2009-02-05 Sam Weinig <sam@webkit.org> · ba15c48b
      weinig@apple.com authored
              Reviewed by Geoffrey Garen.
      
              Fix missing checked toRenderBlock casts.
      
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::clearFloats):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::availableHeightUsing):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba15c48b
    • weinig@apple.com's avatar
      2009-02-05 Sam Weinig <sam@webkit.org> · f7f3d24c
      weinig@apple.com authored
              Patch from Darin Adler.
              Reviewed by Sam Weinig.
      
              Fix case where we were casting to RenderView.
      
              No test case possible.
      
              * editing/mac/SelectionControllerMac.mm:
              (WebCore::SelectionController::notifyAccessibilityForSelectionChange):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40695 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f7f3d24c
    • dglazkov@chromium.org's avatar
      WebCore: · f6fd3217
      dglazkov@chromium.org authored
      2009-02-05  Aaron Boodman  <aa@chromium.org>
      
              Reviewed by Dave Hyatt.
      
              https://bugs.webkit.org/show_bug.cgi?id=23708
              Adds documentElementAvailable() callback to FrameLoaderClient.
      
              * dom/XMLTokenizerLibxml2.cpp:
              (WebCore::XMLTokenizer::startElementNs):
              Add call to dispatchDocumentElementAvailable()
              * dom/XMLTokenizerQt.cpp:
              (WebCore::XMLTokenizer::parseStartElement):
              Ditto.
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::insertNode):
              Ditto.
              * loader/EmptyClients.h:
              (WebCore::EmptyFrameLoaderClient::documentElementAvailable):
              Stub out documentElementAvailable().
              * loader/FrameLoader.cpp:
              documentElementAvailable() callback plumbing.
              * loader/FrameLoader.h:
              Ditto.
              * loader/FrameLoaderClient.h:
              Add new documentElementAvailable() callback.
      
      WebKit/gtk:
      
      2009-02-05  Aaron Boodman <aa@chromium.org>
      
              Reviewed by Dave Hyatt.
      
              https://bugs.webkit.org/show_bug.cgi?id=23708
              Adds documentElementAvailable() callback to FrameLoaderClient.
      
              * WebCoreSupport/FrameLoaderClientGtk.cpp:
              (WebKit::FrameLoaderClient::documentElementAvailable):
              Stub out documentElementAvailable()
              * WebCoreSupport/FrameLoaderClientGtk.h:
              Ditto.
      
      WebKit/mac:
      
      2009-02-05  Aaron Boodman  <aa@chromium.org>
      
              Reviewed by Dave Hyatt.
      
              https://bugs.webkit.org/show_bug.cgi?id=23708
              Adds documentElementAvailable() callback to FrameLoaderClient.
      
              * WebCoreSupport/WebFrameLoaderClient.h:
              Stub out documentElementAvailable().
              * WebCoreSupport/WebFrameLoaderClient.mm:
              Ditto.
      
      WebKit/qt:
      
      2009-02-05  Aaron Boodman  <aa@chromium.org>
      
              Reviewed by Dave Hyatt.
      
              https://bugs.webkit.org/show_bug.cgi?id=23708
              Adds documentElementAvailable() callback to FrameLoaderClient.
      
              * WebCoreSupport/FrameLoaderClientQt.cpp:
              (WebCore::FrameLoaderClient::documentElementAvailable):
              Stub out documentElementAvailable().
              * WebCoreSupport/FrameLoaderClientQt.h:
              Ditto.
      
      WebKit/win:
      
      2009-02-05  Aaron Boodman  <aa@chromium.org>
      
              Reviewed by Dave Hyatt.
      
              https://bugs.webkit.org/show_bug.cgi?id=23708
              Adds documentElementAvailable() callback to FrameLoaderClient.
      
              * WebFrame.cpp:
              (WebFrame::documentElementAvailable):
              Stub out documentElementAvailable()
              * WebFrame.h:
              Ditto.
      
      WebKit/wx:
      
      2009-02-05  Aaron Boodman  <aa@chromium.org>
      
              Reviewed by Dave Hyatt.
      
              https://bugs.webkit.org/show_bug.cgi?id=23708
              Adds documentElementAvailable() callback to FrameLoaderClient.
      
              * WebKitSupport/FrameLoaderClientWx.cpp:
              (WebCore::FrameLoaderClientWx::documentElementAvailable):
              Stub out documentElementAvailable().
              * WebKitSupport/FrameLoaderClientWx.h:
              Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40694 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f6fd3217
    • dglazkov@chromium.org's avatar
      2009-02-05 Scott Violet <sky@google.com> · d96b66ac
      dglazkov@chromium.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=23766
              CanvasRenderingContext2D::setShadow needs else for other platforms.
      
              Implements the CMYK variant of CanvasRenderingContext2D::setShadow for
              other platforms using the CMYK color constructor.
      
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::setShadow):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40693 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d96b66ac
    • dglazkov@chromium.org's avatar
      2009-02-05 Scott Violet <sky@google.com> · 0eef2337
      dglazkov@chromium.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=23687
              Wires up Skia'a ImageBuffer::toDataURL to support pngs.
              This helps Chromium pass a couple of layout tests.
      
              * platform/graphics/skia/ImageBufferSkia.cpp:
              (WebCore::ImageBuffer::toDataURL):
              * platform/image-encoders: Added.
              * platform/image-encoders/skia: Added.
              * platform/image-encoders/skia/PNGImageEncoder.cpp: Added.
              (WebCore::):
              (WebCore::PngEncoderState::EncoderWriteCallback):
              (WebCore::PngEncoderState::ConvertBGRAtoRGB):
              (WebCore::PngEncoderState::PngWriteStructDestroyer::PngWriteStructDestroyer):
              (WebCore::PngEncoderState::PngWriteStructDestroyer::~PngWriteStructDestroyer):
              (WebCore::PNGImageEncoder::encode):
              * platform/image-encoders/skia/PNGImageEncoder.h: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0eef2337
    • weinig@apple.com's avatar
      2009-02-05 Sam Weinig <sam@webkit.org> · 6b2e31b9
      weinig@apple.com authored
              Reviewed by Darin Adler.
      
              Fix missing checked cast.
      
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::containingBlock):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40691 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b2e31b9
    • zimmermann@webkit.org's avatar
      Not reviewed. Fix WML enabled builds. · 5522031b
      zimmermann@webkit.org authored
      FrameLoader::load() got an additional 'lockHistory' parameter, pass 'false'.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40690 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5522031b
    • dglazkov@chromium.org's avatar
      2009-02-05 Scott Violet <sky@google.com> · b01fac69
      dglazkov@chromium.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=23625
              Additional fix: Skia platform doesn't render text to a canvas or support clipping to an image buffer
      
              Fixes three bugs in PlatformContextSkia:
      
              * When a new layer was started clipped to an image we used the
                assignment operator to copy the SkBitmap. If the SkBitmap owns it's
                pixels, this is not the right thing to do. Instead we need to create
                a copy of the image.
              * State holds an SkBitmap by value. State's copy constructor does a
                memcpy. This is confusing and subtle, I've converted to use a member
                initializer list which I think is clearer and less error prone.
              * When creating a new layer there is no need to copy the clip image.
      
              * platform/graphics/skia/PlatformContextSkia.cpp:
              (PlatformContextSkia::State::State):
              (PlatformContextSkia::save):
              (PlatformContextSkia::beginLayerClippedToImage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40689 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b01fac69
    • dglazkov@chromium.org's avatar
      2009-02-05 Scott Violet <sky@google.com> · 88607783
      dglazkov@chromium.org authored
              Reviewed by George Staikos.
      
              https://bugs.webkit.org/show_bug.cgi?id=23462
              Changes call from setFillColor to setStrokeColor.
      
              * html/CanvasStyle.cpp:
              (WebCore::CanvasStyle::applyStrokeColor):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40688 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      88607783
    • dglazkov@chromium.org's avatar
      2009-02-05 Dimitri Glazkov <dglazkov@chromium.org> · af45e054
      dglazkov@chromium.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=23767
              Add custom V8 bindings for HTML5 database.
      
              * bindings/v8/custom/V8CustomSQLStatementCallback.cpp: Added.
              (WebCore::V8CustomSQLStatementCallback::V8CustomSQLStatementCallback):
              (WebCore::V8CustomSQLStatementCallback::~V8CustomSQLStatementCallback):
              (WebCore::V8CustomSQLStatementCallback::handleEvent):
              * bindings/v8/custom/V8CustomSQLStatementCallback.h: Added.
              (WebCore::V8CustomSQLStatementCallback::create):
              * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp: Added.
              (WebCore::V8CustomSQLStatementErrorCallback::V8CustomSQLStatementErrorCallback):
              (WebCore::V8CustomSQLStatementErrorCallback::~V8CustomSQLStatementErrorCallback):
              (WebCore::V8CustomSQLStatementErrorCallback::handleEvent):
              * bindings/v8/custom/V8CustomSQLStatementErrorCallback.h: Added.
              (WebCore::V8CustomSQLStatementErrorCallback::create):
              * bindings/v8/custom/V8CustomSQLTransactionCallback.cpp: Added.
              (WebCore::V8CustomSQLTransactionCallback::V8CustomSQLTransactionCallback):
              (WebCore::V8CustomSQLTransactionCallback::~V8CustomSQLTransactionCallback):
              (WebCore::V8CustomSQLTransactionCallback::handleEvent):
              * bindings/v8/custom/V8CustomSQLTransactionCallback.h: Added.
              (WebCore::V8CustomSQLTransactionCallback::create):
              * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp: Added.
              (WebCore::V8CustomSQLTransactionErrorCallback::V8CustomSQLTransactionErrorCallback):
              (WebCore::V8CustomSQLTransactionErrorCallback::~V8CustomSQLTransactionErrorCallback):
              (WebCore::V8CustomSQLTransactionErrorCallback::handleEvent):
              * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.h: Added.
              (WebCore::V8CustomSQLTransactionErrorCallback::create):
              * bindings/v8/custom/V8CustomVoidCallback.cpp: Added.
              (WebCore::V8CustomVoidCallback::V8CustomVoidCallback):
              (WebCore::V8CustomVoidCallback::~V8CustomVoidCallback):
              (WebCore::V8CustomVoidCallback::handleEvent):
              (WebCore::invokeCallback):
              * bindings/v8/custom/V8CustomVoidCallback.h: Added.
              (WebCore::V8CustomVoidCallback::create):
              * bindings/v8/custom/V8DatabaseCustom.cpp: Added.
              (WebCore::CALLBACK_FUNC_DECL):
              * bindings/v8/custom/V8SQLResultSetRowListCustom.cpp: Added.
              (WebCore::CALLBACK_FUNC_DECL):
              * bindings/v8/custom/V8SQLTransactionCustom.cpp: Added.
              (WebCore::CALLBACK_FUNC_DECL):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40687 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      af45e054
    • hyatt@apple.com's avatar
      2009-02-05 David Hyatt <hyatt@apple.com> · d7723c3d
      hyatt@apple.com authored
              Fix crash on svg custom stop test.  A virtual function didn't get patched properly.
      
              Reviewed by Sam Weinig
      
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::clippedOverflowRectForRepaint):
              * rendering/RenderSVGGradientStop.h:
              (WebCore::RenderSVGGradientStop::clippedOverflowRectForRepaint):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40686 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7723c3d
    • simon.fraser@apple.com's avatar
      2009-02-05 Simon Fraser <simon.fraser@apple.com> · ddefab49
      simon.fraser@apple.com authored
              Reviewed by Dave Hyatt
      
              https://bugs.webkit.org/show_bug.cgi?id=23765
      
              Add toRenderBoxModelObject() so that we can cast objects that
              can have layers.
      
              Fix getComputedStyle to return the current value of style
              properties that are undergoing accelerated animations, by
              asking the AnimationController if the property has accelerated
              animations, and, if so, asking it to generate an appropriate
              style.
      
              Tightened up some type safety (CSSPropertyID), and code clarity
              (replace bool with enum).
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40685 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ddefab49
    • dglazkov@chromium.org's avatar
      JavaScriptCore: · 27b2dc78
      dglazkov@chromium.org authored
      2009-02-05  Dimitri Glazkov  <dglazkov@chromium.org>
      
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=23747
              Add Chromium threading-related files.
      
              * wtf/MainThread.cpp: Added platform guard to initializeMainThread.
              * wtf/chromium/ChromiumThreading.h: Added.
              * wtf/chromium/MainThreadChromium.cpp: Added.
              (WTF::initializeMainThread):
              (WTF::scheduleDispatchFunctionsOnMainThread):
      
      WebCore:
      
      2009-02-05  Dimitri Glazkov  <dglazkov@chromium.org>
      
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=23747
              Add Chromium threading-related files.
      
              * platform/chromium/TemporaryLinkStubs.cpp: Removed theading-related stubs.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40684 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      27b2dc78
    • weinig@apple.com's avatar
      Fix whitespace in the ChangeLog · 8559e1e5
      weinig@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40683 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8559e1e5
    • mitz@apple.com's avatar
      - build fix · e9c7a278
      mitz@apple.com authored
              * WebView/WebScriptDebugger.mm:
              (WebScriptDebugger::initGlobalCallFrame):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40682 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9c7a278
    • weinig@apple.com's avatar
      2009-02-05 Sam Weinig <sam@webkit.org> · ba2c09a5
      weinig@apple.com authored
              Reviewed by Adam Roben.
      
              Add toRenderButton methods for casting RenderObjects to RenderButtons.  The methods will assert if the object
              is not a RenderButton.  Also add a toRenderButton method that takes a RenderButton but returns void and that
              is unimplemented.  This method will catch anyone trying to do a cast when the object is already a RenderButton.
      
              * rendering/RenderButton.h:
              (WebCore::RenderButton::isRenderButton):
              (WebCore::toRenderButton):
              * rendering/RenderFileUploadControl.cpp:
              (WebCore::RenderFileUploadControl::paintObject):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::isRenderButton):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40681 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba2c09a5
    • bdakin@apple.com's avatar
      2009-02-05 Beth Dakin <bdakin@apple.com> · 4c24c85a
      bdakin@apple.com authored
              Reviewed by John Sullivan and Brady Eidson.
      
              Fix for <rdar://problem/6557595> REGRESSION: In Mail, selecting a 
              mail note message doesn't display it in Mail's preview pane
      
              This was failing because revision 36962 removed a version of 
              setVerticalScrollingMode that mail calls. This patch simply adds 
              that method back.
      
              * WebView/WebDynamicScrollBarsView.m:
              (-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40680 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4c24c85a
    • hyatt@apple.com's avatar
      2009-02-05 David Hyatt <hyatt@apple.com> · 0de4d641
      hyatt@apple.com authored
              Move the m_layer member variable of RenderBox up into RenderBoxModelObject.  Refactor styleDidChange'
              of RenderObject, RenderBoxModelObject and RenderBox to get more of the code in the correct subclass.  
              In order to set the various RenderObject bits properly prior to the test for whether a layer is 
              required, I added an additional method, updateBoxModelInfoAfterStyleChange, that is responsible
              for setting all of the bits.
              
              Eliminate hasStaticX/Y, staticX/Y, and setStaticX/Y from the render tree.  Move hasStaticX/Y to
              RenderStyle, and just use the corresponding layer() methods for the
              staticX/Y getters/setters.
      
              Reviewed by Sam Weinig
      
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::adjustPositionedBlock):
              (WebCore::RenderBlock::layoutOnlyPositionedObjects):
              (WebCore::RenderBlock::layoutPositionedObjects):
              (WebCore::RenderBlock::paintObject):
              (WebCore::RenderBlock::nodeAtPoint):
              (WebCore::RenderBlock::offsetForContents):
              (WebCore::RenderBlock::calcPrefWidths):
              (WebCore::RenderBlock::baselinePosition):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::RenderBox):
              (WebCore::RenderBox::destroy):
              (WebCore::RenderBox::styleWillChange):
              (WebCore::RenderBox::styleDidChange):
              (WebCore::RenderBox::updateBoxModelInfoFromStyle):
              (WebCore::RenderBox::scrollWidth):
              (WebCore::RenderBox::scrollHeight):
              (WebCore::RenderBox::scrollLeft):
              (WebCore::RenderBox::scrollTop):
              (WebCore::RenderBox::setScrollLeft):
              (WebCore::RenderBox::setScrollTop):
              (WebCore::RenderBox::getOverflowClipRect):
              (WebCore::RenderBox::localToAbsolute):
              (WebCore::RenderBox::absoluteToLocal):
              (WebCore::RenderBox::localToContainerQuad):
              (WebCore::RenderBox::position):
              (WebCore::RenderBox::computeRectForRepaint):
              (WebCore::RenderBox::calcAbsoluteHorizontal):
              (WebCore::RenderBox::calcAbsoluteVertical):
              (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
              (WebCore::RenderBox::calcAbsoluteVerticalReplaced):
              * rendering/RenderBox.h:
              * rendering/RenderBoxModelObject.cpp:
              (WebCore::RenderBoxModelObject::RenderBoxModelObject):
              (WebCore::RenderBoxModelObject::destroy):
              (WebCore::RenderBoxModelObject::styleWillChange):
              (WebCore::RenderBoxModelObject::styleDidChange):
              (WebCore::RenderBoxModelObject::updateBoxModelInfoFromStyle):
              * rendering/RenderBoxModelObject.h:
              (WebCore::RenderBoxModelObject::layer):
              (WebCore::RenderBoxModelObject::requiresLayer):
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::layoutBlock):
              (WebCore::RenderFlexibleBox::layoutHorizontalBox):
              (WebCore::RenderFlexibleBox::layoutVerticalBox):
              * rendering/RenderInline.cpp:
              (WebCore::RenderInline::updateBoxModelInfoFromStyle):
              (WebCore::RenderInline::styleDidChange):
              (WebCore::RenderInline::relativePositionedInlineOffset):
              * rendering/RenderInline.h:
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::setStaticY):
              (WebCore::RenderLayer::updateLayerPosition):
              * rendering/RenderLayer.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::setStyle):
              (WebCore::RenderObject::styleDidChange):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::markContainingBlocksForLayout):
              * rendering/RenderTableRow.cpp:
              (WebCore::RenderTableRow::paint):
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::destroy):
              * rendering/bidi.cpp:
              (WebCore::appendRunsForObject):
              (WebCore::RenderBlock::layoutInlineChildren):
              (WebCore::RenderBlock::skipTrailingWhitespace):
              (WebCore::RenderBlock::skipLeadingWhitespace):
              (WebCore::RenderBlock::findNextLineBreak):
              * rendering/style/RenderStyle.h:
              (WebCore::InheritedFlags::hasStaticX):
              (WebCore::InheritedFlags::hasStaticY):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0de4d641
    • bfulgham@webkit.org's avatar
      2009-02-05 David Levin <levin@chromium.org> · d47070fe
      bfulgham@webkit.org authored
              Reviewed by Darin Adler.
      
              Bug 23713: COMPILE_ASSERTS should be moved out of TypeTraits.h and into .cpp file
              <https://bugs.webkit.org/show_bug.cgi?id=23713>
      
              * GNUmakefile.am:
              * JavaScriptCore.pri:
              * JavaScriptCore.scons:
              * JavaScriptCore.vcproj/WTF/WTF.vcproj:
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * JavaScriptCoreSources.bkl:
      
              * wtf/HashTraits.h:
              Remove unnecessary header file that I missed when moving out the type traits form this file.
      
              * wtf/TypeTraits.cpp: Added.
              (WTF::):
              * wtf/TypeTraits.h:
              Moved the compile asserts into TypeTraits.cpp file.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d47070fe
    • weinig@apple.com's avatar
      2009-02-05 Sam Weinig <sam@webkit.org> · ebc3cbca
      weinig@apple.com authored
              Fix the windows build.
      
              * bindings/scripts/CodeGeneratorCOM.pm:
              * dom/Node.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40677 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ebc3cbca
    • andersca@apple.com's avatar
      2009-02-05 Anders Carlsson <andersca@apple.com> · d046ddb0
      andersca@apple.com authored
              Reviewed by Kevin Decker.
              
              Update to match Gecko.
              
              * bridge/npapi.h:
              * plugins/npfunctions.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40676 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d046ddb0
    • weinig@apple.com's avatar
      2009-02-05 Sam Weinig <sam@webkit.org> · b9d2ac2f
      weinig@apple.com authored
              Reviewed by Darin Adler.
      
              Finish merging EventTargetNode up into Node.
      
              This also fixes a small recently introduced issue where EventListeners
              would not be removed from the document if they were attached to comment
              nodes outside of the documentElement.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.scons:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSEventTargetNodeCustom.cpp: Removed.
              * bindings/js/JSNodeCustom.cpp:
              (WebCore::JSNode::addEventListener):
              (WebCore::JSNode::removeEventListener):
              (WebCore::JSNode::pushEventHandlerScope):
              * bindings/scripts/CodeGenerator.pm:
              * dom/CharacterData.cpp:
              (WebCore::CharacterData::CharacterData):
              (WebCore::CharacterData::rendererIsNeeded):
              * dom/CharacterData.h:
              * dom/ContainerNode.cpp:
              (WebCore::ContainerNode::willRemove):
              (WebCore::ContainerNode::attach):
              (WebCore::ContainerNode::detach):
              (WebCore::ContainerNode::insertedIntoDocument):
              (WebCore::ContainerNode::removedFromDocument):
              (WebCore::ContainerNode::setFocus):
              (WebCore::ContainerNode::setActive):
              (WebCore::ContainerNode::setHovered):
              (WebCore::dispatchChildInsertionEvents):
              (WebCore::dispatchChildRemovalEvents):
              * dom/ContainerNode.h:
              (WebCore::ContainerNode::ContainerNode):
              * dom/Document.cpp:
              (WebCore::Document::removeAllEventListenersFromAllNodes):
              (WebCore::Document::removeAllDisconnectedNodeEventListeners):
              (WebCore::Document::setFocusedNode):
              * dom/EventTargetNode.cpp: Removed.
              * dom/EventTargetNode.h: Removed.
              * dom/Node.cpp:
              (WebCore::Node::scriptExecutionContext):
              (WebCore::Node::eventListeners):
              (WebCore::Node::insertedIntoDocument):
              (WebCore::Node::removedFromDocument):
              (WebCore::Node::willMoveToNewOwnerDocument):
              (WebCore::Node::didMoveToNewOwnerDocument):
              (WebCore::updateSVGElementInstancesAfterEventListenerChange):
              (WebCore::Node::addEventListener):
              (WebCore::Node::removeEventListener):
              (WebCore::Node::removeAllEventListenersSlowCase):
              (WebCore::Node::handleLocalEvents):
              (WebCore::eventTargetAsSVGElementInstance):
              (WebCore::eventTargetRespectingSVGTargetRules):
              (WebCore::Node::dispatchEvent):
              (WebCore::Node::dispatchGenericEvent):
              (WebCore::Node::dispatchSubtreeModifiedEvent):
              (WebCore::Node::dispatchWindowEvent):
              (WebCore::Node::dispatchUIEvent):
              (WebCore::Node::dispatchKeyEvent):
              (WebCore::Node::dispatchMouseEvent):
              (WebCore::Node::dispatchSimulatedMouseEvent):
              (WebCore::Node::dispatchSimulatedClick):
              (WebCore::Node::dispatchWheelEvent):
              (WebCore::Node::dispatchWebKitAnimationEvent):
              (WebCore::Node::dispatchWebKitTransitionEvent):
              (WebCore::Node::dispatchFocusEvent):
              (WebCore::Node::dispatchBlurEvent):
              (WebCore::Node::dispatchEventForType):
              (WebCore::Node::dispatchProgressEvent):
              (WebCore::Node::dispatchStorageEvent):
              (WebCore::Node::removeInlineEventListenerForType):
              (WebCore::Node::setInlineEventListenerForType):
              (WebCore::Node::setInlineEventListenerForTypeAndAttribute):
              (WebCore::Node::inlineEventListenerForType):
              (WebCore::Node::disabled):
              (WebCore::Node::defaultEventHandler):
              (WebCore::Node::onabort):
              (WebCore::Node::setOnabort):
              (WebCore::Node::onblur):
              (WebCore::Node::setOnblur):
              (WebCore::Node::onchange):
              (WebCore::Node::setOnchange):
              (WebCore::Node::onclick):
              (WebCore::Node::setOnclick):
              (WebCore::Node::oncontextmenu):
              (WebCore::Node::setOncontextmenu):
              (WebCore::Node::ondblclick):
              (WebCore::Node::setOndblclick):
              (WebCore::Node::onerror):
              (WebCore::Node::setOnerror):
              (WebCore::Node::onfocus):
              (WebCore::Node::setOnfocus):
              (WebCore::Node::oninput):
              (WebCore::Node::setOninput):
              (WebCore::Node::onkeydown):
              (WebCore::Node::setOnkeydown):
              (WebCore::Node::onkeypress):
              (WebCore::Node::setOnkeypress):
              (WebCore::Node::onkeyup):
              (WebCore::Node::setOnkeyup):
              (WebCore::Node::onload):
              (WebCore::Node::setOnload):
              (WebCore::Node::onmousedown):
              (WebCore::Node::setOnmousedown):
              (WebCore::Node::onmousemove):
              (WebCore::Node::setOnmousemove):
              (WebCore::Node::onmouseout):
              (WebCore::Node::setOnmouseout):
              (WebCore::Node::onmouseover):
              (WebCore::Node::setOnmouseover):
              (WebCore::Node::onmouseup):
              (WebCore::Node::setOnmouseup):
              (WebCore::Node::onmousewheel):
              (WebCore::Node::setOnmousewheel):
              (WebCore::Node::onbeforecut):
              (WebCore::Node::setOnbeforecut):
              (WebCore::Node::oncut):
              (WebCore::Node::setOncut):
              (WebCore::Node::onbeforecopy):
              (WebCore::Node::setOnbeforecopy):
              (WebCore::Node::oncopy):
              (WebCore::Node::setOncopy):
              (WebCore::Node::onbeforepaste):
              (WebCore::Node::setOnbeforepaste):
              (WebCore::Node::onpaste):
              (WebCore::Node::setOnpaste):
              (WebCore::Node::ondragenter):
              (WebCore::Node::setOndragenter):
              (WebCore::Node::ondragover):
              (WebCore::Node::setOndragover):
              (WebCore::Node::ondragleave):
              (WebCore::Node::setOndragleave):
              (WebCore::Node::ondrop):
              (WebCore::Node::setOndrop):
              (WebCore::Node::ondragstart):
              (WebCore::Node::setOndragstart):
              (WebCore::Node::ondrag):
              (WebCore::Node::setOndrag):
              (WebCore::Node::ondragend):
              (WebCore::Node::setOndragend):
              (WebCore::Node::onreset):
              (WebCore::Node::setOnreset):
              (WebCore::Node::onresize):
              (WebCore::Node::setOnresize):
              (WebCore::Node::onscroll):
              (WebCore::Node::setOnscroll):
              (WebCore::Node::onsearch):
              (WebCore::Node::setOnsearch):
              (WebCore::Node::onselect):
              (WebCore::Node::setOnselect):
              (WebCore::Node::onselectstart):
              (WebCore::Node::setOnselectstart):
              (WebCore::Node::onsubmit):
              (WebCore::Node::setOnsubmit):
              (WebCore::Node::onunload):
              (WebCore::Node::setOnunload):
              * dom/Node.h:
              * editing/Editor.cpp:
              (WebCore::Editor::dispatchCPPEvent):
              * html/HTMLFormElement.cpp:
              (WebCore::HTMLFormElement::handleLocalEvents):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::defaultEventHandler):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::notifyFinished):
              * loader/MediaDocument.cpp:
              (WebCore::MediaDocument::defaultEventHandler):
              * page/AccessibilityRenderObject.cpp:
              (WebCore::AccessibilityRenderObject::mouseButtonListener):
              * page/EventHandler.cpp:
              (WebCore::EventHandler::dispatchDragEvent):
              (WebCore::EventHandler::updateMouseEventTargetNode):
              (WebCore::EventHandler::dispatchMouseEvent):
              (WebCore::EventHandler::handleWheelEvent):
              (WebCore::EventHandler::canMouseDownStartSelect):
              (WebCore::EventHandler::canMouseDragExtendSelect):
              (WebCore::eventTargetNodeForDocument):
              (WebCore::EventHandler::keyEvent):
              * page/FrameView.cpp:
              (WebCore::FrameView::scheduleEvent):
              (WebCore::FrameView::updateOverflowStatus):
              * page/FrameView.h:
              * page/Page.cpp:
              (WebCore::networkStateChanged):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::scrollToOffset):
              (WebCore::RenderLayer::updateOverflowStatus):
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::valueChanged):
              * rendering/RenderMedia.h:
              * rendering/RenderTextControl.cpp:
              (WebCore::RenderTextControl::selectionChanged):
              * svg/SVGElementInstance.h:
              (WebCore::SVGElementInstance::toNode):
              * xml/XPathExpression.cpp:
              (WebCore::XPathExpression::evaluate):
              * xml/XPathResult.cpp:
              (WebCore::XPathResult::XPathResult):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40675 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b9d2ac2f
    • treat@webkit.org's avatar
      2009-02-05 Adam Treat <adam.treat@torchmobile.com> · 8c3887ff
      treat@webkit.org authored
              Fix the Qt build now that EventTargetNode.idl was removed in r40672.
      
              * WebCore.pro:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c3887ff
    • darin@chromium.org's avatar
      2009-02-05 Scott Violet <sky@google.com> · 2ecc2b3b
      darin@chromium.org authored
              Reviewed by Sam Weinig.
      
              Bug 23462: Add RGB -> CMYK conversion algorithm
              <https://bugs.webkit.org/show_bug.cgi?id=23462>
      
              Adds an RGB -> CMYK converter. This isn't perfect, but better than
              nothing.
      
              * html/CanvasStyle.cpp:
              (WebCore::CanvasStyle::applyStrokeColor):
              (WebCore::CanvasStyle::applyFillColor):
              (WebCore::CanvasStyle::cmykToRGB):
              * html/CanvasStyle.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40673 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2ecc2b3b
    • weinig@apple.com's avatar
      WebCore: · 5bd5cc90
      weinig@apple.com authored
      2009-02-04  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Darin Adler.
      
              First stage of merging EventTargetNode up into Node. The intent of this change
              is to both simplify the inheritance hierarchy (at the same time making it more
              closely match the spec which states that all Nodes are EventTargets) and save
              4 bytes per Node that the polymorphic multiple-inheritance was costing us.
      
              This does the bare minimum to get things compiling, the next patch will clean 
      
              * DerivedSources.make:
              * WebCore.base.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSDocumentCustom.cpp:
              (WebCore::JSDocument::mark):
              * bindings/js/JSEventListener.cpp:
              (WebCore::JSLazyEventListener::parseCode):
              * bindings/js/JSEventTarget.cpp:
              (WebCore::toEventTarget):
              * bindings/js/JSEventTarget.h:
              * bindings/js/JSEventTargetNodeCustom.cpp:
              (WebCore::JSNode::addEventListener):
              (WebCore::JSNode::removeEventListener):
              (WebCore::JSNode::pushEventHandlerScope):
              * bindings/js/JSStyleSheetCustom.cpp:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/scripts/CodeGeneratorObjC.pm:
              * dom/Attr.idl:
              * dom/CharacterData.h:
              * dom/CharacterData.idl:
              * dom/Document.idl:
              * dom/DocumentFragment.idl:
              * dom/Element.idl:
              * dom/EventTarget.cpp:
              (WebCore::EventTarget::toNode):
              * dom/EventTarget.h:
              * dom/EventTarget.idl:
              * dom/EventTargetNode.cpp:
              (WebCore::Node::scriptExecutionContext):
              (WebCore::Node::eventListeners):
              (WebCore::Node::insertedIntoDocument):
              (WebCore::Node::removedFromDocument):
              (WebCore::Node::willMoveToNewOwnerDocument):
              (WebCore::Node::didMoveToNewOwnerDocument):
              (WebCore::Node::addEventListener):
              (WebCore::Node::removeEventListener):
              (WebCore::Node::removeAllEventListenersSlowCase):
              (WebCore::Node::handleLocalEvents):
              (WebCore::Node::dispatchEvent):
              (WebCore::Node::dispatchGenericEvent):
              (WebCore::Node::dispatchSubtreeModifiedEvent):
              (WebCore::Node::dispatchWindowEvent):
              (WebCore::Node::dispatchUIEvent):
              (WebCore::Node::dispatchKeyEvent):
              (WebCore::Node::dispatchMouseEvent):
              (WebCore::Node::dispatchSimulatedMouseEvent):
              (WebCore::Node::dispatchSimulatedClick):
              (WebCore::Node::dispatchWheelEvent):
              (WebCore::Node::dispatchWebKitAnimationEvent):
              (WebCore::Node::dispatchWebKitTransitionEvent):
              (WebCore::Node::dispatchFocusEvent):
              (WebCore::Node::dispatchBlurEvent):
              (WebCore::Node::dispatchEventForType):
              (WebCore::Node::dispatchProgressEvent):
              (WebCore::Node::dispatchStorageEvent):
              (WebCore::Node::removeInlineEventListenerForType):
              (WebCore::Node::setInlineEventListenerForType):
              (WebCore::Node::setInlineEventListenerForTypeAndAttribute):
              (WebCore::Node::inlineEventListenerForType):
              (WebCore::Node::disabled):
              (WebCore::Node::defaultEventHandler):
              (WebCore::Node::onabort):
              (WebCore::Node::setOnabort):
              (WebCore::Node::onblur):
              (WebCore::Node::setOnblur):
              (WebCore::Node::onchange):
              (WebCore::Node::setOnchange):
              (WebCore::Node::onclick):
              (WebCore::Node::setOnclick):
              (WebCore::Node::oncontextmenu):
              (WebCore::Node::setOncontextmenu):
              (WebCore::Node::ondblclick):
              (WebCore::Node::setOndblclick):
              (WebCore::Node::onerror):
              (WebCore::Node::setOnerror):
              (WebCore::Node::onfocus):
              (WebCore::Node::setOnfocus):
              (WebCore::Node::oninput):
              (WebCore::Node::setOninput):
              (WebCore::Node::onkeydown):
              (WebCore::Node::setOnkeydown):
              (WebCore::Node::onkeypress):
              (WebCore::Node::setOnkeypress):
              (WebCore::Node::onkeyup):
              (WebCore::Node::setOnkeyup):
              (WebCore::Node::onload):
              (WebCore::Node::setOnload):
              (WebCore::Node::onmousedown):
              (WebCore::Node::setOnmousedown):
              (WebCore::Node::onmousemove):
              (WebCore::Node::setOnmousemove):
              (WebCore::Node::onmouseout):
              (WebCore::Node::setOnmouseout):
              (WebCore::Node::onmouseover):
              (WebCore::Node::setOnmouseover):
              (WebCore::Node::onmouseup):
              (WebCore::Node::setOnmouseup):
              (WebCore::Node::onmousewheel):
              (WebCore::Node::setOnmousewheel):
              (WebCore::Node::onbeforecut):
              (WebCore::Node::setOnbeforecut):
              (WebCore::Node::oncut):
              (WebCore::Node::setOncut):
              (WebCore::Node::onbeforecopy):
              (WebCore::Node::setOnbeforecopy):
              (WebCore::Node::oncopy):
              (WebCore::Node::setOncopy):
              (WebCore::Node::onbeforepaste):
              (WebCore::Node::setOnbeforepaste):
              (WebCore::Node::onpaste):
              (WebCore::Node::setOnpaste):
              (WebCore::Node::ondragenter):
              (WebCore::Node::setOndragenter):
              (WebCore::Node::ondragover):
              (WebCore::Node::setOndragover):
              (WebCore::Node::ondragleave):
              (WebCore::Node::setOndragleave):
              (WebCore::Node::ondrop):
              (WebCore::Node::setOndrop):
              (WebCore::Node::ondragstart):
              (WebCore::Node::setOndragstart):
              (WebCore::Node::ondrag):
              (WebCore::Node::setOndrag):
              (WebCore::Node::ondragend):
              (WebCore::Node::setOndragend):
              (WebCore::Node::onreset):
              (WebCore::Node::setOnreset):
              (WebCore::Node::onresize):
              (WebCore::Node::setOnresize):
              (WebCore::Node::onscroll):
              (WebCore::Node::setOnscroll):
              (WebCore::Node::onsearch):
              (WebCore::Node::setOnsearch):
              (WebCore::Node::onselect):
              (WebCore::Node::setOnselect):
              (WebCore::Node::onselectstart):
              (WebCore::Node::setOnselectstart):
              (WebCore::Node::onsubmit):
              (WebCore::Node::setOnsubmit):
              (WebCore::Node::onunload):
              (WebCore::Node::setOnunload):
              * dom/EventTargetNode.h:
              (WebCore::toEventTargetNode):
              (WebCore::EventTargetNodeCast):
              * dom/EventTargetNode.idl: Removed.
              * dom/MouseEvent.cpp:
              (WebCore::MouseEvent::MouseEvent):
              (WebCore::MouseEvent::initMouseEvent):
              (WebCore::MouseEvent::toElement):
              (WebCore::MouseEvent::fromElement):
              * dom/MouseEvent.h:
              (WebCore::MouseEvent::create):
              (WebCore::MouseEvent::relatedTarget):
              * dom/Node.cpp:
              (WebCore::Node::~Node):
              * dom/Node.h:
              (WebCore::Node::isEventTargetNode):
              (WebCore::Node::toNode):
              (WebCore::Node::removeAllEventListeners):
              (WebCore::Node::refEventTarget):
              (WebCore::Node::derefEventTarget):
              * dom/Node.idl:
              * page/EventHandler.h:
              * page/FrameView.h:
              * xml/XPathResult.h:
              (WebCore::XPathResult::create):
      
      LayoutTests:
      
      2009-02-05  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Darin Layer.
      
              Fix after merging EventTargetNode up into Node.
      
              * fast/dom/Window/window-properties-expected.txt:
              * fast/dom/prototype-chain-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5bd5cc90
    • hyatt@apple.com's avatar
      2009-02-04 David Hyatt <hyatt@apple.com> · 80ab6e9a
      hyatt@apple.com authored
              Convert RenderLayer from having a RenderBox* m_renderer to having a RenderBoxModelObject*.  The
              container-relative repaint methods all had to be changed as a result to use RenderBoxModelObject* also.
      
              All of RenderLayer.cpp now uses what will be the new style for dealing with an object that can be a block
              or an inline flow.  x()/y()/width()/height() can't be queried on an inline flow, nor can many other
              properties (like scrollWidth() / scrollHeight()), so the code has to be tightened up to convert to RenderBox
              under the right conditions.
      
              There was a bogus subtraction of renderer()->y() in localBounding box for RenderInlines.  Since y was always
              0, this subtraction wasn't necessary.  It has been removed.
      
              Reviewed by Adam Roben
      
              * page/animation/AnimationBase.cpp:
              * rendering/RenderBR.h:
              (WebCore::RenderBR::selectionRectForRepaint):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::selectionGapRectsForRepaint):
              (WebCore::RenderBlock::rectWithOutlineForRepaint):
              * rendering/RenderBlock.h:
              (WebCore::RenderBlock::selectionRectForRepaint):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::outlineBoundsForRepaint):
              (WebCore::RenderBox::localToContainerQuad):
              (WebCore::RenderBox::clippedOverflowRectForRepaint):
              (WebCore::RenderBox::computeRectForRepaint):
              * rendering/RenderBox.h:
              * rendering/RenderBoxModelObject.cpp:
              (WebCore::RenderBoxModelObject::relativePositionOffsetX):
              (WebCore::RenderBoxModelObject::relativePositionOffsetY):
              * rendering/RenderBoxModelObject.h:
              (WebCore::RenderBoxModelObject::relativePositionOffset):
              * rendering/RenderForeignObject.cpp:
              (WebCore::RenderForeignObject::computeRectForRepaint):
              * rendering/RenderForeignObject.h:
              * rendering/RenderInline.cpp:
              (WebCore::RenderInline::clippedOverflowRectForRepaint):
              (WebCore::RenderInline::rectWithOutlineForRepaint):
              * rendering/RenderInline.h:
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::RenderLayer):
              (WebCore::RenderLayer::updateLayerPositions):
              (WebCore::RenderLayer::updateTransform):
              (WebCore::RenderLayer::setHasVisibleContent):
              (WebCore::RenderLayer::updateLayerPosition):
              (WebCore::RenderLayer::scrollToOffset):
              (WebCore::RenderLayer::scrollRectToVisible):
              (WebCore::resizerCornerRect):
              (WebCore::RenderLayer::scrollbarCornerPresent):
              (WebCore::RenderLayer::invalidateScrollbarRect):
              (WebCore::RenderLayer::positionOverflowControls):
              (WebCore::RenderLayer::computeScrollDimensions):
              (WebCore::RenderLayer::updateScrollInfoAfterLayout):
              (WebCore::RenderLayer::paintScrollCorner):
              (WebCore::RenderLayer::paintResizer):
              (WebCore::RenderLayer::isPointInResizeControl):
              (WebCore::RenderLayer::hitTestOverflowControls):
              (WebCore::RenderLayer::paintLayer):
              (WebCore::RenderLayer::hitTestLayer):
              (WebCore::RenderLayer::localBoundingBox):
              * rendering/RenderLayer.h:
              (WebCore::RenderLayer::renderer):
              (WebCore::RenderLayer::renderBox):
              (WebCore::RenderLayer::renderBoxX):
              (WebCore::RenderLayer::renderBoxY):
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::selectionRectForRepaint):
              * rendering/RenderListMarker.h:
              * rendering/RenderMarquee.cpp:
              (WebCore::RenderMarquee::computePosition):
              (WebCore::RenderMarquee::timerFired):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::containerForRepaint):
              (WebCore::RenderObject::repaintUsingContainer):
              (WebCore::RenderObject::repaint):
              (WebCore::RenderObject::repaintRectangle):
              (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
              (WebCore::RenderObject::rectWithOutlineForRepaint):
              (WebCore::RenderObject::clippedOverflowRectForRepaint):
              (WebCore::RenderObject::computeRectForRepaint):
              (WebCore::RenderObject::localToContainerQuad):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::selectionRectForRepaint):
              (WebCore::RenderObject::outlineBoundsForRepaint):
              * rendering/RenderPath.cpp:
              (WebCore::RenderPath::clippedOverflowRectForRepaint):
              (WebCore::RenderPath::outlineBoundsForRepaint):
              * rendering/RenderPath.h:
              * rendering/RenderReplaced.cpp:
              (WebCore::RenderReplaced::selectionRectForRepaint):
              (WebCore::RenderReplaced::clippedOverflowRectForRepaint):
              * rendering/RenderReplaced.h:
              * rendering/RenderSVGContainer.cpp:
              (WebCore::RenderSVGContainer::clippedOverflowRectForRepaint):
              (WebCore::RenderSVGContainer::outlineBoundsForRepaint):
              * rendering/RenderSVGContainer.h:
              * rendering/RenderSVGHiddenContainer.cpp:
              (WebCore::RenderSVGHiddenContainer::clippedOverflowRectForRepaint):
              * rendering/RenderSVGHiddenContainer.h:
              * rendering/RenderSVGImage.cpp:
              (WebCore::RenderSVGImage::clippedOverflowRectForRepaint):
              * rendering/RenderSVGImage.h:
              * rendering/RenderSVGInlineText.cpp:
              (WebCore::RenderSVGInlineText::selectionRectForRepaint):
              (WebCore::RenderSVGInlineText::computeRepaintRectForRange):
              * rendering/RenderSVGInlineText.h:
              * rendering/RenderSVGRoot.cpp:
              (WebCore::RenderSVGRoot::clippedOverflowRectForRepaint):
              * rendering/RenderSVGRoot.h:
              * rendering/RenderSVGText.cpp:
              (WebCore::RenderSVGText::clippedOverflowRectForRepaint):
              * rendering/RenderSVGText.h:
              * rendering/RenderSelectionInfo.h:
              (WebCore::RenderSelectionInfoBase::repaintContainer):
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::clippedOverflowRectForRepaint):
              (WebCore::RenderTableCell::computeRectForRepaint):
              (WebCore::RenderTableCell::localToContainerQuad):
              * rendering/RenderTableCell.h:
              * rendering/RenderTableCol.cpp:
              (WebCore::RenderTableCol::clippedOverflowRectForRepaint):
              * rendering/RenderTableCol.h:
              * rendering/RenderTableRow.cpp:
              (WebCore::RenderTableRow::clippedOverflowRectForRepaint):
              * rendering/RenderTableRow.h:
              * rendering/RenderText.cpp:
              (WebCore::RenderText::clippedOverflowRectForRepaint):
              (WebCore::RenderText::selectionRectForRepaint):
              * rendering/RenderText.h:
              * rendering/RenderTreeAsText.cpp:
              (WebCore::write):
              * rendering/RenderView.cpp:
              (WebCore::RenderView::localToContainerQuad):
              (WebCore::RenderView::computeRectForRepaint):
              * rendering/RenderView.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      80ab6e9a
    • ap@webkit.org's avatar
      Build fix. · 62925b09
      ap@webkit.org authored
              * page/animation/KeyframeAnimation.h: A function prototype had two "fromStyle" arguments.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      62925b09
    • hausmann@webkit.org's avatar
      2009-02-05 Yael Aharon <yael.aharon@nokia.com> · 690acc06
      hausmann@webkit.org authored
              Reviewed by Alexey Proskuryakov.
              Landed by Simon Hausmann.
      
              https://bugs.webkit.org/show_bug.cgi?id=23733
      
              Use a 2 arguments constructor for KURL to avoid ASSERT failure.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      690acc06
    • bfulgham@webkit.org's avatar
      2009-02-04 Feng Qian <feng@chromium.org> · ef783e4b
      bfulgham@webkit.org authored
              Reviewed by Darin Adler.
      
              Add Android-specific files to WebCore/editing directory.
              https://bugs.webkit.org/show_bug.cgi?id=23294
      
              * editing/android: Added.
              * editing/android/EditorAndroid.cpp: Added.
              (WebCore::Editor::newGeneralClipboard):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef783e4b