1. 31 Dec, 2006 9 commits
    • ddkilzer's avatar
      JavaScriptCore: · 60a7a800
      ddkilzer authored
              Reviewed by Geoff.
      
              Update embedded pcre library from version 6.2 to 6.4.  Changes from pcre 6.2 to 6.3
              did not include any files in JavaScriptCore/pcre.
      
              All changes include renaming EXPORT to PCRE_EXPORT, renaming of ucp_findchar() to
              _pcre_ucp_findchar(), or comment changes.  Additional changes noted below.
      
              * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Updated source file list.
              * JavaScriptCore.xcodeproj/project.pbxproj: Renamed pcre_printint.c to pcre_printint.src
              and changed it from a source file to a header file.
              * JavaScriptCoreSources.bkl: Updated source file list.
              * pcre/CMakeLists.txt: Updated source file list.
              * pcre/pcre-config.h:
              * pcre/pcre.h: Updated version.
              * pcre/pcre.pri: Updated source file list.
              * pcre/pcre_compile.c: Include pcre_printint.src #if DEBUG.
              (pcre_compile2):
              * pcre/pcre_config.c:
              * pcre/pcre_exec.c:
              (match):
              * pcre/pcre_fullinfo.c:
              * pcre/pcre_info.c:
              * pcre/pcre_internal.h: Added header guard.  Removed export of _pcre_printint().
              * pcre/pcre_ord2utf8.c:
              * pcre/pcre_printint.c: Renamed to pcre_printint.src.
              * pcre/pcre_printint.src: Added.  Renamed _pcre_printint() to pcre_printint().
              * pcre/pcre_refcount.c:
              * pcre/pcre_study.c:
              * pcre/pcre_tables.c:
              * pcre/pcre_try_flipped.c:
              * pcre/pcre_ucp_findchar.c: Added contents of ucp_findchar.c.
              * pcre/pcre_version.c:
              * pcre/pcre_xclass.c:
              (_pcre_xclass):
              * pcre/ucp.h: Removed export of ucp_findchar().
              * pcre/ucp_findchar.c: Removed.  Contents moved to pcre_ucp_findchar.c.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60a7a800
    • ddkilzer's avatar
      WebCore: · 2306f20a
      ddkilzer authored
              Reviewed by Hyatt.
      
              - http://bugs.webkit.org/show_bug.cgi?id=12049
                RenderBlock::calcMinMaxWidth() should not examine children of fixed-width blocks
      
              No test possible (no change to functionality).
      
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::calcMinMaxWidth): Call calc{Inline,Block}MinMaxWidth()
              only if their result is needed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2306f20a
    • bdash's avatar
      Roll over WebCore ChangeLog · 63a634e5
      bdash authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18496 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      63a634e5
    • eseidel's avatar
      2006-12-31 Eric Seidel <eric@webkit.org> · bd3b70ad
      eseidel authored
              Reviewed by weinig.
      
              Make SVGPathSeg construction take fewer lines of code.
      
              * WebCore.xcodeproj/project.pbxproj:
              * ksvg2/svg/SVGPathElement.cpp:
              (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
              (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
              (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
              (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
              (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
              (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
              (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
              (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
              (WebCore::SVGPathElement::createSVGPathSegArcAbs):
              (WebCore::SVGPathElement::createSVGPathSegArcRel):
              (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
              (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
              (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
              (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
              (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
              (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
              (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
              (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
              * ksvg2/svg/SVGPathSegArc.cpp:
              (WebCore::SVGPathSegArcAbs::SVGPathSegArcAbs):
              (WebCore::SVGPathSegArcRel::SVGPathSegArcRel):
              * ksvg2/svg/SVGPathSegArc.h:
              * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
              (WebCore::SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs):
              (WebCore::SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel):
              * ksvg2/svg/SVGPathSegCurvetoCubic.h:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
              (WebCore::SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs):
              (WebCore::SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel):
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
              (WebCore::SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs):
              (WebCore::SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel):
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
              (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs):
              (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel):
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
              * ksvg2/svg/SVGPathSegLineto.cpp:
              (WebCore::SVGPathSegLinetoAbs::SVGPathSegLinetoAbs):
              (WebCore::SVGPathSegLinetoRel::SVGPathSegLinetoRel):
              * ksvg2/svg/SVGPathSegLineto.h:
              * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
              (WebCore::SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs):
              (WebCore::SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel):
              * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
              * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
              (WebCore::SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs):
              (WebCore::SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel):
              * ksvg2/svg/SVGPathSegLinetoVertical.h:
              * ksvg2/svg/SVGPathSegMoveto.cpp:
              (WebCore::SVGPathSegMovetoAbs::SVGPathSegMovetoAbs):
              (WebCore::SVGPathSegMovetoRel::SVGPathSegMovetoRel):
              * ksvg2/svg/SVGPathSegMoveto.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18495 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bd3b70ad
    • eseidel's avatar
      2006-12-31 Eric Seidel <eric@eseidel.com> · 824105e2
      eseidel authored
              Reviewed by mitz.
              
              Make getTotalLength test case work in Opera and FireFox.
      
              * svg/custom/path-getTotalLength-expected.checksum: Removed.
              * svg/custom/path-getTotalLength-expected.png: Removed.
              * svg/custom/path-getTotalLength-expected.txt:
              * svg/custom/path-getTotalLength.svg:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18494 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      824105e2
    • eseidel's avatar
      2006-12-31 Eric Seidel <eric@eseidel.com> · 5a6479bc
      eseidel authored
              Reviewed by weinig.
      
              Implement path length measuring for SVGPathElement::getTotalLength and friends.
              http://bugs.webkit.org/show_bug.cgi?id=12033
      
              * WebCore.xcodeproj/project.pbxproj:
              * ksvg2/svg/SVGPathElement.cpp:
              (WebCore::SVGPathElement::getTotalLength):
              (WebCore::SVGPathElement::getPointAtLength):
              * platform/graphics/Path.cpp:
              (WebCore::pathLengthApplierFunction):
              (WebCore::Path::length):
              (WebCore::Path::pointAtLength):
              * platform/graphics/Path.h:
              * platform/graphics/PathTraversalState.cpp: Added.
              (WebCore::midPoint):
              (WebCore::distanceLine):
              (WebCore::QuadraticBezier::QuadraticBezier):
              (WebCore::QuadraticBezier::approximateDistance):
              (WebCore::QuadraticBezier::split):
              (WebCore::CubicBezier::CubicBezier):
              (WebCore::CubicBezier::approximateDistance):
              (WebCore::CubicBezier::split):
              (WebCore::curveLength):
              (WebCore::PathTraversalState::PathTraversalState):
              (WebCore::PathTraversalState::closeSubpath):
              (WebCore::PathTraversalState::moveTo):
              (WebCore::PathTraversalState::lineTo):
              (WebCore::PathTraversalState::quadraticBezierTo):
              (WebCore::PathTraversalState::cubicBezierTo):
              * platform/graphics/PathTraversalState.h: Added.
              (WebCore::PathTraversalState::):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a6479bc
    • weinig's avatar
      Reviewed by Mitz. · 1ebf548e
      weinig authored
              Move the SVGZoomAndPanType enum out of SVGSVGElement and
              SVGViewElement and into SVGZoomAndPan where it belongs.
      
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGViewElement.h:
              * ksvg2/svg/SVGZoomAndPan.cpp:
              (WebCore::SVGZoomAndPan::SVGZoomAndPan):
              (WebCore::SVGZoomAndPan::parseMappedAttribute):
              * ksvg2/svg/SVGZoomAndPan.h:
              (WebCore::SVGZoomAndPan::):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1ebf548e
    • ddkilzer's avatar
      LayoutTests: · db2dc752
      ddkilzer authored
              Reviewed by Hyatt. Tweaked by Mitz.
      
              - test for http://bugs.webkit.org/show_bug.cgi?id=9659
                Quirksmode: Fixed / Overflow > Positioned objects get hidden when scrolling
      
              * fast/overflow/clip-rects-fixed-ancestor-expected.checksum: Added.
              * fast/overflow/clip-rects-fixed-ancestor-expected.png: Added.
              * fast/overflow/clip-rects-fixed-ancestor-expected.txt: Added.
              * fast/overflow/clip-rects-fixed-ancestor.html: Added.
      
      WebCore:
      
              Reviewed by Hyatt.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=9659
                Quirksmode: Fixed / Overflow > Positioned objects get hidden when scrolling
      
              Added a 'fixed' flag to ClipRects, indicating that the cached rects are in
              viewport coordinates. The flag is set (and scrolling is compensated for) for
              fixed objects and their descendants.
      
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::calculateClipRects):
              (WebCore::RenderLayer::calculateRects):
              * rendering/RenderLayer.h:
              (WebCore::ClipRects::ClipRects):
              (WebCore::ClipRects::fixed):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18491 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db2dc752
    • ddkilzer's avatar
      LayoutTests: · 5d0a61e4
      ddkilzer authored
              Reviewed by Sam.
      
              - test for http://bugs.webkit.org/show_bug.cgi?id=12037
                For relatively positioned boxes in an RTL block, 'right' should win over 'left' if both are not 'auto'
      
              * fast/block/positioning/relative-overconstrained-expected.checksum: Added.
              * fast/block/positioning/relative-overconstrained-expected.png: Added.
              * fast/block/positioning/relative-overconstrained-expected.txt: Added.
              * fast/block/positioning/relative-overconstrained.html: Added.
      
      WebCore:
      
              Reviewed by Sam.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=12037
                For relatively positioned boxes in an RTL block, 'right' should win over 'left' if both are not 'auto'
      
              Test: fast/block/positioning/relative-overconstrained.html
      
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::relativePositionOffsetX):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18490 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5d0a61e4
  2. 30 Dec, 2006 6 commits
  3. 29 Dec, 2006 16 commits
    • ddkilzer's avatar
      2006-12-29 David Kilzer <ddkilzer@webkit.org> · 31a04cf8
      ddkilzer authored
              Reviewed by Geoff.
      
              Update embedded pcre library from version 6.1 to 6.2.  From the pcre ChangeLog:
      
              3. Added "b" to the 2nd argument of fopen() in dftables.c, for non-Unix-like
                 operating environments where this matters.
      
              5. Named capturing subpatterns were not being correctly counted when a pattern
                 was compiled. This caused two problems: (a) If there were more than 100
                 such subpatterns, the calculation of the memory needed for the whole
                 compiled pattern went wrong, leading to an overflow error. (b) Numerical
                 back references of the form \12, where the number was greater than 9, were
                 not recognized as back references, even though there were sufficient
                 previous subpatterns.
      
              * pcre/dftables.c: Item 3.
              (main):
              * pcre/pcre.h: Updated version.
              * pcre/pcre_compile.c: Item 5.
              (read_repeat_counts):
              (pcre_compile2):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18483 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31a04cf8
    • ddkilzer's avatar
      2006-12-29 David Kilzer <ddkilzer@webkit.org> · 6abfe95c
      ddkilzer authored
              Build fix for no-svg build.
      
              Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT.
      
              * bindings/js/kjs_css.cpp:
              (KJS::toJS):
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::createImage):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18482 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6abfe95c
    • ggaren's avatar
      JavaScriptCore: · 7593bef1
      ggaren authored
              Reviewed by Brian Dash... err... Mark Rowe.
      
              More cleanup in preparation for fixing <rdar://problem/4608404> 
              WebScriptObject's _executionContext lack of ownership policy causes 
              crashes (e.g., in Dashcode)
              
              The key change here is to RootObject::RootObject().
              
              * JavaScriptCore.exp:
      
              * bindings/c/c_utility.cpp:
              (KJS::Bindings::convertValueToNPVariant): Changed to use new constructor.
      
              * bindings/jni/jni_jsobject.cpp:
              (JavaJSObject::createNative): Changed to use new constructor. Replaced
              large 'if' followed by default condition with "if !" and explicit default
              condition.
      
              * bindings/objc/objc_runtime.mm:
              (convertValueToObjcObject): Changed to use new constructor.
      
              * bindings/runtime_root.cpp:
              (KJS::Bindings::RootObject::destroy): "removeAllNativeReferences" => "destroy"
              because this function actually destroys the RootObject.
      
              * bindings/runtime_root.h: Changed Interpreter* to RefPtr<Interpreter>
              to prevent a RootObject from holding a stale Interperter*.
              
              (KJS::Bindings::RootObject::RootObject): Changed constructor to take an 
              Interpreter*, since it's pointless to create a RootObject without one.
              Removed setRootObjectImp() and rootObjectImp() because they were just
              a confusing way of setting and getting the Interpreter's global object.
      
              (KJS::Bindings::RootObject::nativeHandle): "_nativeHandle" => "m_nativeHandle"
              (KJS::Bindings::RootObject::interpreter): "_interpreter" => "m_interpreter"
      
      WebCore:
      
              Reviewed by Brian Dash... err... Mark Rowe.
      
              More cleanup in preparation for fixing <rdar://problem/4608404> 
              WebScriptObject's _executionContext lack of ownership policy causes 
              crashes (e.g., in Dashcode)
              
              The key change here is to RootObject::RootObject().
              
              Layout tests pass.
              
              Renamed "_bindingRoot" => "_bindingRootObject" because "RootObject" is the
              type name.
              
              * bindings/objc/WebScriptObject.mm:
              (_didExecute): Use Interpreter::globalObject(), since RootObject::rootObjectImp() 
              no longer exists.
      
              * page/mac/FrameMac.mm:
              (WebCore::FrameMac::bindingRootObject): Use the new RootObject constructor.
              Stop lying about who deletes _bindingRoot.
      
              (WebCore::FrameMac::cleanupPluginObjects): => "destroy". Fixed a bug where
              the RootObject would only free its own memory if there were a ReferencesSet*
              associated with it.
      
              * page/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge rootObjectForView:]): Use new constructor. Changed
              misleading comment.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7593bef1
    • rwlbuis's avatar
      Reviewed by Eric. · 274d6285
      rwlbuis authored
              http://bugs.webkit.org/show_bug.cgi?id=12007
              SVGColor::setRGBColor color creates/deletes many strings, slowing down parsing 
      
              Refactor code so svg reuses cssparser methods. Also make
              SVGColor and SVGPaint more efficient by avoiding using
              setRGBColor internally.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18480 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      274d6285
    • rwlbuis's avatar
      Reviewed by weinig. · b15a9525
      rwlbuis authored
              http://bugs.webkit.org/show_bug.cgi?id=12022
              typo in SVGTransformable.cpp introduce in r18440
           
              Use the helper method proposed by Eric.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18479 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b15a9525
    • rwlbuis's avatar
      Reviewed by Eric. · 56c753ba
      rwlbuis authored
              http://bugs.webkit.org/show_bug.cgi?id=12028
              Adapt viewBox parsing to SVGParserUtilities
      
              Use the new parseNumber and add tests for viewBox parsing.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18478 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56c753ba
    • ggaren's avatar
      Build fix: SVGImage only works on Mac. · e12de856
      ggaren authored
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::createImage):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18477 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e12de856
    • weinig's avatar
      Reviewed by Geoff. · 5b398c48
      weinig authored
              Patch for http://bugs.webkit.org/show_bug.cgi?id=12018
              Cleanup of CSSRule and its subclasses
      
              - Make CSSRule::type() virtual instead of using a member variable.
              - General style cleanup.
      
              * WebCore.xcodeproj/project.pbxproj:
              * css/CSSCharsetRule.cpp:
              (WebCore::CSSCharsetRule::CSSCharsetRule):
              * css/CSSCharsetRule.h:
              (WebCore::CSSCharsetRule::isCharsetRule):
              (WebCore::CSSCharsetRule::type):
              * css/CSSFontFaceRule.cpp:
              (WebCore::CSSFontFaceRule::CSSFontFaceRule):
              (WebCore::CSSFontFaceRule::cssText):
              * css/CSSFontFaceRule.h:
              (WebCore::CSSFontFaceRule::isFontFaceRule):
              (WebCore::CSSFontFaceRule::type):
              * css/CSSImportRule.cpp:
              (WebCore::CSSImportRule::CSSImportRule):
              (WebCore::CSSImportRule::setCSSStyleSheet):
              (WebCore::CSSImportRule::insertedIntoParent):
              * css/CSSImportRule.h:
              (WebCore::CSSImportRule::isImportRule):
              (WebCore::CSSImportRule::type):
              * css/CSSMediaRule.cpp:
              (WebCore::CSSMediaRule::CSSMediaRule):
              (WebCore::CSSMediaRule::insertRule):
              (WebCore::CSSMediaRule::deleteRule):
              (WebCore::CSSMediaRule::cssText):
              * css/CSSMediaRule.h:
              (WebCore::CSSMediaRule::isMediaRule):
              (WebCore::CSSMediaRule::type):
              * css/CSSPageRule.cpp:
              (WebCore::CSSPageRule::CSSPageRule):
              (WebCore::CSSPageRule::selectorText):
              (WebCore::CSSPageRule::setSelectorText):
              (WebCore::CSSPageRule::cssText):
              * css/CSSPageRule.h:
              (WebCore::CSSPageRule::style):
              (WebCore::CSSPageRule::type):
              * css/CSSRule.cpp:
              (WebCore::CSSRule::cssText):
              (WebCore::CSSRule::setCssText):
              * css/CSSRule.h:
              (WebCore::CSSRule::):
              (WebCore::CSSRule::CSSRule):
              * css/CSSStyleRule.cpp:
              (WebCore::CSSStyleRule::CSSStyleRule):
              (WebCore::CSSStyleRule::setSelectorText):
              (WebCore::CSSStyleRule::cssText):
              (WebCore::CSSStyleRule::parseString):
              * css/CSSStyleRule.h:
              (WebCore::CSSStyleRule::isStyleRule):
              (WebCore::CSSStyleRule::style):
              (WebCore::CSSStyleRule::type):
              * css/CSSUnknownRule.h:
              (WebCore::CSSUnknownRule::CSSUnknownRule):
              (WebCore::CSSUnknownRule::type):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18476 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b398c48
    • eseidel's avatar
      2006-12-29 Eric Seidel <eric@eseidel.com> · 9eda9f43
      eseidel authored
              Reviewed by ap.
      
              * platform/graphics/svg/SVGImage.cpp:
              (WebCore::SVGImage::size): explicitly cast to integers to prevent compile error
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18475 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9eda9f43
    • staikos's avatar
      Make the Qt port not crash on many sites such as www.apple.com: painter was closed too · 822b1a85
      staikos authored
      early, and I think also there is a Qt bug that it complains about a painter being
      around on a destroyed object that's really just a QShared reference going away.  Worked
      around.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18474 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      822b1a85
    • zimmermann's avatar
      Build fixed, not reviewed. Noticed by Daniel Molkentin. · ef953a8d
      zimmermann authored
      * platform/graphics/svg/SVGImage.h: s/WTF/wtf/ in include.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18473 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef953a8d
    • eseidel's avatar
      2006-12-29 Eric Seidel <eric@webkit.org> · 08231907
      eseidel authored
              Reviewed by olliej.
      
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyCromeClient::scaleFactor):  build fix, use 1.f instead of 1f
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18472 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      08231907
    • eseidel's avatar
      2006-12-29 Eric Seidel <eric@eseidel.com> · dc86a1ce
      eseidel authored
              Reviewed by olliej.
              
              Add updated SVGImage results, forgotten in last commit.
      
              * fast/images/svg-as-background-expected.checksum: Added.
              * fast/images/svg-as-background-expected.png: Added.
              * fast/images/svg-as-background-expected.txt: Added.
              * fast/images/svg-as-image-expected.checksum: Added.
              * fast/images/svg-as-image-expected.png: Added.
              * fast/images/svg-as-image-expected.txt: Added.
              * fast/images/svg-as-tiled-background-expected.checksum: Added.
              * fast/images/svg-as-tiled-background-expected.png: Added.
              * fast/images/svg-as-tiled-background-expected.txt: Added.
              * svg/W3C-SVG-1.1/filters-composite-02-b-expected.checksum:
              * svg/W3C-SVG-1.1/filters-composite-02-b-expected.png:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc86a1ce
    • eseidel's avatar
      2006-12-29 Eric Seidel <eric@webkit.org> · 6e535b90
      eseidel authored
              Reviewed by hyatt.
      
              New tests:
              * fast/images/svg-as-image.html
              * fast/images/svg-as-background.html
              * fast/images/svg-as-tiled-background.html
              
              Implement basic SVGImage support.
              http://bugs.webkit.org/show_bug.cgi?id=5971
              
              This implementation depends on (rather ugly) stub Page and Frame clients in SVGImageEmptyClients.h
      
              * WebCore.xcodeproj/project.pbxproj: add SVGImage.*
              * ksvg2/svg/SVGFEImageElement.cpp:
              (WebCore::SVGFEImageElement::parseMappedAttribute): ignore fragment urls
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::createImage):
              * platform/graphics/Image.h: made setData virtual
              * platform/graphics/cg/PDFDocumentImage.cpp:
              (WebCore::PDFDocumentImage::drawTiled): stub method
              * platform/graphics/cg/PDFDocumentImage.h:
              * platform/graphics/svg/SVGImage.cpp: Added.
              (WebCore::SVGImage::SVGImage):
              (WebCore::SVGImage::~SVGImage):
              (WebCore::SVGImage::size):
              (WebCore::SVGImage::draw):
              (WebCore::SVGImage::drawTiled): stub method
              (WebCore::SVGImage::setData):
              * platform/graphics/svg/SVGImage.h: Added.
              (WebCore::SVGImage::frameAtIndex):
              * platform/graphics/svg/SVGImageEmptyClients.h: Added.
              (WebCore::SVGEmptyCromeClient::~SVGEmptyCromeClient):
              (WebCore::SVGEmptyCromeClient::chromeDestroyed):
              (WebCore::SVGEmptyCromeClient::setWindowRect):
              (WebCore::SVGEmptyCromeClient::windowRect):
              (WebCore::SVGEmptyCromeClient::pageRect):
              (WebCore::SVGEmptyCromeClient::scaleFactor):
              (WebCore::SVGEmptyCromeClient::focus):
              (WebCore::SVGEmptyCromeClient::unfocus):
              (WebCore::SVGEmptyCromeClient::createWindow):
              (WebCore::SVGEmptyCromeClient::createModalDialog):
              (WebCore::SVGEmptyCromeClient::show):
              (WebCore::SVGEmptyCromeClient::canRunModal):
              (WebCore::SVGEmptyCromeClient::runModal):
              (WebCore::SVGEmptyCromeClient::setToolbarsVisible):
              (WebCore::SVGEmptyCromeClient::toolbarsVisible):
              (WebCore::SVGEmptyCromeClient::setStatusbarVisible):
              (WebCore::SVGEmptyCromeClient::statusbarVisible):
              (WebCore::SVGEmptyCromeClient::setScrollbarsVisible):
              (WebCore::SVGEmptyCromeClient::scrollbarsVisible):
              (WebCore::SVGEmptyCromeClient::setMenubarVisible):
              (WebCore::SVGEmptyCromeClient::menubarVisible):
              (WebCore::SVGEmptyCromeClient::setResizable):
              (WebCore::SVGEmptyCromeClient::addMessageToConsole):
              (WebCore::SVGEmptyCromeClient::canRunBeforeUnloadConfirmPanel):
              (WebCore::SVGEmptyCromeClient::runBeforeUnloadConfirmPanel):
              (WebCore::SVGEmptyCromeClient::closeWindowSoon):
              (WebCore::SVGEmptyFrameLoaderClient::~SVGEmptyFrameLoaderClient):
              (WebCore::SVGEmptyFrameLoaderClient::frameLoaderDestroyed):
              (WebCore::SVGEmptyFrameLoaderClient::hasWebView):
              (WebCore::SVGEmptyFrameLoaderClient::hasFrameView):
              (WebCore::SVGEmptyFrameLoaderClient::hasBackForwardList):
              (WebCore::SVGEmptyFrameLoaderClient::resetBackForwardList):
              (WebCore::SVGEmptyFrameLoaderClient::provisionalItemIsTarget):
              (WebCore::SVGEmptyFrameLoaderClient::loadProvisionalItemFromPageCache):
              (WebCore::SVGEmptyFrameLoaderClient::invalidateCurrentItemPageCache):
              (WebCore::SVGEmptyFrameLoaderClient::privateBrowsingEnabled):
              (WebCore::SVGEmptyFrameLoaderClient::makeDocumentView):
              (WebCore::SVGEmptyFrameLoaderClient::makeRepresentation):
              (WebCore::SVGEmptyFrameLoaderClient::setDocumentViewFromPageCache):
              (WebCore::SVGEmptyFrameLoaderClient::forceLayout):
              (WebCore::SVGEmptyFrameLoaderClient::forceLayoutForNonHTML):
              (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForCommit):
              (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForBackForwardNavigation):
              (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForReload):
              (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForStandardLoad):
              (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForInternalLoad):
              (WebCore::SVGEmptyFrameLoaderClient::updateHistoryAfterClientRedirect):
              (WebCore::SVGEmptyFrameLoaderClient::setCopiesOnScroll):
              (WebCore::SVGEmptyFrameLoaderClient::tokenForLoadErrorReset):
              (WebCore::SVGEmptyFrameLoaderClient::resetAfterLoadError):
              (WebCore::SVGEmptyFrameLoaderClient::doNotResetAfterLoadError):
              (WebCore::SVGEmptyFrameLoaderClient::detachedFromParent1):
              (WebCore::SVGEmptyFrameLoaderClient::detachedFromParent2):
              (WebCore::SVGEmptyFrameLoaderClient::detachedFromParent3):
              (WebCore::SVGEmptyFrameLoaderClient::detachedFromParent4):
              (WebCore::SVGEmptyFrameLoaderClient::loadedFromPageCache):
              (WebCore::SVGEmptyFrameLoaderClient::download):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchIdentifierForInitialRequest):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchWillSendRequest):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveResponse):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveContentLength):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFinishLoading):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFailLoading):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidHandleOnloadEvents):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCancelClientRedirect):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchWillPerformClientRedirect):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidChangeLocationWithinPage):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchWillClose):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveIcon):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidStartProvisionalLoad):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveTitle):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCommitLoad):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFailProvisionalLoad):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFailLoad):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFinishLoad):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFirstLayout):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchCreatePage):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchShow):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDecidePolicyForMIMEType):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
              (WebCore::SVGEmptyFrameLoaderClient::cancelPolicyCheck):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchUnableToImplementPolicy):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchWillSubmitForm):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidLoadMainResource):
              (WebCore::SVGEmptyFrameLoaderClient::clearLoadingFromPageCache):
              (WebCore::SVGEmptyFrameLoaderClient::isLoadingFromPageCache):
              (WebCore::SVGEmptyFrameLoaderClient::revertToProvisionalState):
              (WebCore::SVGEmptyFrameLoaderClient::setMainDocumentError):
              (WebCore::SVGEmptyFrameLoaderClient::clearUnarchivingState):
              (WebCore::SVGEmptyFrameLoaderClient::progressStarted):
              (WebCore::SVGEmptyFrameLoaderClient::progressCompleted):
              (WebCore::SVGEmptyFrameLoaderClient::incrementProgress):
              (WebCore::SVGEmptyFrameLoaderClient::completeProgress):
              (WebCore::SVGEmptyFrameLoaderClient::setMainFrameDocumentReady):
              (WebCore::SVGEmptyFrameLoaderClient::startDownload):
              (WebCore::SVGEmptyFrameLoaderClient::willChangeTitle):
              (WebCore::SVGEmptyFrameLoaderClient::didChangeTitle):
              (WebCore::SVGEmptyFrameLoaderClient::committedLoad):
              (WebCore::SVGEmptyFrameLoaderClient::finishedLoading):
              (WebCore::SVGEmptyFrameLoaderClient::finalSetupForReplace):
              (WebCore::SVGEmptyFrameLoaderClient::cancelledError):
              (WebCore::SVGEmptyFrameLoaderClient::cannotShowURLError):
              (WebCore::SVGEmptyFrameLoaderClient::interruptForPolicyChangeError):
              (WebCore::SVGEmptyFrameLoaderClient::cannotShowMIMETypeError):
              (WebCore::SVGEmptyFrameLoaderClient::fileDoesNotExistError):
              (WebCore::SVGEmptyFrameLoaderClient::shouldFallBack):
              (WebCore::SVGEmptyFrameLoaderClient::setDefersLoading):
              (WebCore::SVGEmptyFrameLoaderClient::willUseArchive):
              (WebCore::SVGEmptyFrameLoaderClient::isArchiveLoadPending):
              (WebCore::SVGEmptyFrameLoaderClient::cancelPendingArchiveLoad):
              (WebCore::SVGEmptyFrameLoaderClient::clearArchivedResources):
              (WebCore::SVGEmptyFrameLoaderClient::canHandleRequest):
              (WebCore::SVGEmptyFrameLoaderClient::canShowMIMEType):
              (WebCore::SVGEmptyFrameLoaderClient::representationExistsForURLScheme):
              (WebCore::SVGEmptyFrameLoaderClient::generatedMIMETypeForURLScheme):
              (WebCore::SVGEmptyFrameLoaderClient::frameLoadCompleted):
              (WebCore::SVGEmptyFrameLoaderClient::restoreScrollPositionAndViewState):
              (WebCore::SVGEmptyFrameLoaderClient::provisionalLoadStarted):
              (WebCore::SVGEmptyFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
              (WebCore::SVGEmptyFrameLoaderClient::addHistoryItemForFragmentScroll):
              (WebCore::SVGEmptyFrameLoaderClient::didFinishLoad):
              (WebCore::SVGEmptyFrameLoaderClient::prepareForDataSourceReplacement):
              (WebCore::SVGEmptyFrameLoaderClient::createDocumentLoader):
              (WebCore::SVGEmptyFrameLoaderClient::setTitle):
              (WebCore::SVGEmptyFrameLoaderClient::userAgent):
              (WebCore::SVGEmptyEditorClient::~SVGEmptyEditorClient):
              (WebCore::SVGEmptyEditorClient::pageDestroyed):
              (WebCore::SVGEmptyEditorClient::shouldDeleteRange):
              (WebCore::SVGEmptyEditorClient::shouldShowDeleteInterface):
              (WebCore::SVGEmptyEditorClient::smartInsertDeleteEnabled):
              (WebCore::SVGEmptyEditorClient::isContinuousSpellCheckingEnabled):
              (WebCore::SVGEmptyEditorClient::toggleContinuousSpellChecking):
              (WebCore::SVGEmptyEditorClient::isGrammarCheckingEnabled):
              (WebCore::SVGEmptyEditorClient::toggleGrammarChecking):
              (WebCore::SVGEmptyEditorClient::spellCheckerDocumentTag):
              (WebCore::SVGEmptyEditorClient::selectWordBeforeMenuEvent):
              (WebCore::SVGEmptyEditorClient::isEditable):
              (WebCore::SVGEmptyEditorClient::shouldBeginEditing):
              (WebCore::SVGEmptyEditorClient::shouldEndEditing):
              (WebCore::SVGEmptyEditorClient::shouldInsertNode):
              (WebCore::SVGEmptyEditorClient::shouldInsertText):
              (WebCore::SVGEmptyEditorClient::shouldApplyStyle):
              (WebCore::SVGEmptyEditorClient::didBeginEditing):
              (WebCore::SVGEmptyEditorClient::respondToChangedContents):
              (WebCore::SVGEmptyEditorClient::didEndEditing):
              (WebCore::SVGEmptyEditorClient::registerCommandForUndo):
              (WebCore::SVGEmptyEditorClient::registerCommandForRedo):
              (WebCore::SVGEmptyEditorClient::clearUndoRedoOperations):
              (WebCore::SVGEmptyEditorClient::canUndo):
              (WebCore::SVGEmptyEditorClient::canRedo):
              (WebCore::SVGEmptyEditorClient::undo):
              (WebCore::SVGEmptyEditorClient::redo):
              (WebCore::SVGEmptyEditorClient::dataForArchivedSelection):
              (WebCore::SVGEmptyEditorClient::userVisibleString):
              (WebCore::SVGEmptyContextMenuClient::~SVGEmptyContextMenuClient):
              (WebCore::SVGEmptyContextMenuClient::contextMenuDestroyed):
              (WebCore::SVGEmptyContextMenuClient::addCustomContextMenuItems):
              (WebCore::SVGEmptyContextMenuClient::contextMenuItemSelected):
              (WebCore::SVGEmptyContextMenuClient::downloadURL):
              (WebCore::SVGEmptyContextMenuClient::copyImageToClipboard):
              (WebCore::SVGEmptyContextMenuClient::lookUpInDictionary):
              (WebCore::SVGEmptyContextMenuClient::speak):
              (WebCore::SVGEmptyContextMenuClient::stopSpeaking):
              (WebCore::SVGEmptyContextMenuClient::searchWithSpotlight):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18470 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e535b90
    • eseidel's avatar
      2006-12-29 Eric Seidel <eric@eseidel.com> · 5a5736bf
      eseidel authored
              Reviewed by olliej.
      
              Stop DumpRenderTree from reporting false Frame/Node leaks due to new SVGImage
      
              * DumpRenderTree/DumpRenderTree.m:
              (dumpRenderTree): clear WebCore cache before exiting
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18469 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a5736bf
    • ddkilzer's avatar
      LayoutTests: · 9d4da012
      ddkilzer authored
              Reviewed by NOBODY (build fix).
      
              Reverted last commit until WebResourceData issue is fixed.
      
              http://bugs.webkit.org/show_bug.cgi?id=11882
              Need a way to regression test .webarchive output files
      
              * webarchive/resources/apple.gif: Removed.
              * webarchive/resources/dump-webarchive.js: Removed.
              * webarchive/resources/test-frame.html: Removed.
              * webarchive/resources/test-style.css: Removed.
              * webarchive/test-body-background-expected.txt: Removed.
              * webarchive/test-body-background.html: Removed.
              * webarchive/test-duplicate-resources-expected.txt: Removed.
              * webarchive/test-duplicate-resources.html: Removed.
              * webarchive/test-frameset-expected.txt: Removed.
              * webarchive/test-frameset.html: Removed.
              * webarchive/test-img-src-expected.txt: Removed.
              * webarchive/test-img-src.html: Removed.
              * webarchive/test-input-src-expected.txt: Removed.
              * webarchive/test-input-src.html: Removed.
              * webarchive/test-link-href-expected.txt: Removed.
              * webarchive/test-link-href.html: Removed.
              * webarchive/test-object-data-expected.txt: Removed.
              * webarchive/test-object-data.html: Removed.
              * webarchive/test-script-src-expected.txt: Removed.
              * webarchive/test-script-src.html: Removed.
              * webarchive/test-table-background-expected.txt: Removed.
              * webarchive/test-table-background.html: Removed.
              * webarchive/test-td-background-expected.txt: Removed.
              * webarchive/test-td-background.html: Removed.
      
      WebKitTools:
      
              Reviewed by NOBODY (build fix).
      
              Reverted last commit until WebResourceData issue is fixed.
      
              http://bugs.webkit.org/show_bug.cgi?id=11882
              Need a way to regression test .webarchive output files
      
              * DumpRenderTree/DumpRenderTree.m:
              (serializeWebArchiveToXML): Removed.
              (dump):
              (+[LayoutTestController isSelectorExcludedFromWebScript:]):
              (-[LayoutTestController dumpAsWebArchive]): Removed.
              (runTest):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18468 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d4da012
  4. 28 Dec, 2006 9 commits
    • staikos's avatar
      Make redirects work. · 2b0b523f
      staikos authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b0b523f
    • ddkilzer's avatar
      LayoutTests: · 43b98ee0
      ddkilzer authored
              Reviewed by Darin.
      
              http://bugs.webkit.org/show_bug.cgi?id=11882
              Need a way to regression test .webarchive output files
      
              Created webarchive tests that exercise various features of the WebArchive format.
      
              * webarchive/resources/apple.gif: Copied from fast/canvas/resources/apple.gif.
              * webarchive/resources/dump-webarchive.js: Added.
              * webarchive/resources/test-frame.html: Added.
              * webarchive/resources/test-style.css: Added.
              * webarchive/test-body-background-expected.txt: Added.
              * webarchive/test-body-background.html: Added.
              * webarchive/test-duplicate-resources-expected.txt: Added.
              * webarchive/test-duplicate-resources.html: Added.
              * webarchive/test-frameset-expected.txt: Added.
              * webarchive/test-frameset.html: Added.
              * webarchive/test-img-src-expected.txt: Added.
              * webarchive/test-img-src.html: Added.
              * webarchive/test-input-src-expected.txt: Added.
              * webarchive/test-input-src.html: Added.
              * webarchive/test-link-href-expected.txt: Added.
              * webarchive/test-link-href.html: Added.
              * webarchive/test-object-data-expected.txt: Added.
              * webarchive/test-object-data.html: Added.
              * webarchive/test-script-src-expected.txt: Added.
              * webarchive/test-script-src.html: Added.
              * webarchive/test-table-background-expected.txt: Added.
              * webarchive/test-table-background.html: Added.
              * webarchive/test-td-background-expected.txt: Added.
              * webarchive/test-td-background.html: Added.
      
      WebKitTools:
      
              Reviewed by Darin.
      
              http://bugs.webkit.org/show_bug.cgi?id=11882
              Need a way to regression test .webarchive output files
      
              Implement layoutTestController.dumpAsWebArchive() to test WebArchive format.
              Saves WebArchive plist in xml format, then alters file:// URLs to remove path
              where WebKit was checked out.
      
              * DumpRenderTree/DumpRenderTree.m:
              (serializeWebArchiveToXML): Added.
              (dump):
              (+[LayoutTestController isSelectorExcludedFromWebScript:]):
              (-[LayoutTestController dumpAsWebArchive]): Added.
              (runTest):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18466 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43b98ee0
    • staikos's avatar
      Fix the Qt build. Reviewed by Olliej. · 8d82e376
      staikos authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18465 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8d82e376
    • ggaren's avatar
      Reviewed by Oliver Hunt. · 05f14083
      ggaren authored
              
              More cleanup. Layout tests pass.
              
              Use a helper function to initialize and access WebUndefined and WebScriptObject.
      
              * bindings/objc/objc_runtime.h:
              * bindings/objc/objc_runtime.mm:
              (KJS::Bindings::webScriptObjectClass):
              (KJS::Bindings::webUndefinedClass):
              (convertValueToObjcObject):
              * bindings/objc/objc_utility.mm:
              (KJS::Bindings::convertValueToObjcValue):
              (KJS::Bindings::convertObjcValueToValue):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18464 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      05f14083
    • eseidel's avatar
      2006-12-28 Daniel Molkentin <molkentin@kde.org> · 61952852
      eseidel authored
              Reviewed by Eric Seidel <eric@webkit.org>
      
              - Fix font sizes
              - Make Qt plattform build again:
                - Adjust Qt platform to the Image class split.
                - Introduce BitmapImage class
                - add stub PDFDocumentImage class
      
              * WebCore.pro:
              * editing/qt/EditorQt.cpp:
              (WebCore::Editor::markMisspellingsAfterTypingToPosition):
              * loader/qt/FrameLoaderQt.cpp:
              (WebCore::FrameLoader::partClearedInBegin):
              * platform/graphics/qt/ImageQt.cpp:
              (WebCore::BitmapImage::initPlatformData):
              (WebCore::BitmapImage::invalidatePlatformData):
              (WebCore::Image::loadPlatformResource):
              (WebCore::BitmapImage::draw):
              (WebCore::BitmapImage::drawTiled):
              (WebCore::BitmapImage::checkForSolidColor):
              * platform/graphics/svg/SVGPaintServerLinearGradient.h:
              * platform/graphics/svg/SVGPaintServerRadialGradient.h:
              * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
              (WebCore::SVGPaintServerLinearGradient::setup):
              * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
              (WebCore::SVGPaintServerPattern::setup):
              * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
              (WebCore::SVGPaintServer::teardown):
              * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
              (WebCore::SVGPaintServerRadialGradient::setup):
              * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
              (WebCore::SVGPaintServerSolid::setup):
              * platform/qt/FrameQt.cpp:
              (WebCore::FrameQt::FrameQt):
              (WebCore::FrameQt::bindingRootObject):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18463 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      61952852
    • ggaren's avatar
      Reviewed by Eric Seidel. · f8c2912b
      ggaren authored
              Disable MS-font dependent tests until http://bugs.webkit.org/show_bug.cgi?id=11662 is fixed.
      
              * svg/W3C-SVG-1.1/text-align-08-b.svg: Removed.
              * svg/custom/js-font-test.svg: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18462 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8c2912b
    • ggaren's avatar
      JavaScriptCore: · dd7de074
      ggaren authored
              Reviewed by Brady Eidson.
              
              Some cleanup in preparation for fixing <rdar://problem/4608404> 
              WebScriptObject's _executionContext lack of ownership policy causes 
              crashes (e.g., in Dashcode)
              
              I'm just trying to make heads or tails of this baffling code.
              
              Renamed "root" | "execContext" | "executionContext" => "rootObject", because
              that's the object's (admittedly vague) type name.
              
              * bindings/runtime.cpp: Removed createLanguageInstanceForValue
              because I'll give you a dollar if you can explain to me what it actually did.
              
              * bindings/runtime_root.cpp: Put everything in the KJS::Bindings namespace,
              removing the KJS::Bindings prefix from individual functions and datatypes.
              This matches the header and eliminates a lot of syntax cruft.
              
              * bindings/c/c_utility.cpp:
              (KJS::Bindings::convertValueToNPVariant): Replaced use of createLanguageInstanceForValue
              with call to _NPN_CreateScriptObject because that's what createLanguageInstanceForValue
              actually did (but don't ask me for that dollar now; that's cheating.)
      
              * bindings/objc/objc_utility.h:
              * bindings/objc/objc_utility.mm:
              (KJS::Bindings::convertValueToObjcValue): Removed. Its only purpose was 
              to call a single function for WebKit, which WebKit can do on its own.
      
              * kjs/interpreter.h: Removed rtti() because it was unused, and this class
              is scheduled for demolition anyway.
              
              * kjs/interpreter.cpp: Removed createLanguageInstanceForValue because it had
              nothing to do with the Interpreter, and nothing makes Chuck Norris more mad
              than a function whose sole purpose is to call another function of the same
              name. (Really, I asked him.)
      
      WebCore:
      
              Reviewed by Brady Eidson.
              
              Some cleanup in preparation for fixing <rdar://problem/4608404> 
              WebScriptObject's _executionContext lack of ownership policy causes 
              crashes (e.g., in Dashcode)
              
              Layout tests pass.
      
              Renamed "root" | "execContext" | "executionContext" => rootObject, because
              that's the object's (admittedly vague) type name.
              
              * bindings/js/kjs_binding.cpp:
              * bindings/js/kjs_binding.h: Removed createLanguageInstanceForValue
              and createObjcInstanceForValue because their only purpose was to confuse you.
              
              * bindings/objc/DOMInternal.h: Moved declaration of createDOMWrapper here.
              createDOMWrapper is the new name for createObjcInstanceForValue.
              
              * bindings/objc/DOMInternal.mm: Renamed Interpreter::createObjcInstanceForValue
              to createDOMWrapper because creating DOM wrappers has nothing to do with the interpreter,
              and everything to do with the DOM. Renamed value to object because it is one.
              Removed newObj nil check that is unnecessary in ObjC.
      
              * bindings/objc/WebScriptObject.mm: Replaced call to createLanguageInstanceForValue
              with explicit code to do the same thing it would have done: (1) try to create 
              a DOM wrapper; (2) if the object is not a wrappable DOM object, create a 
              vanilla WebScriptObject for it instead.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18461 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd7de074
    • ddkilzer's avatar
      2006-12-28 Mitz Pettel <mitz@webkit.org> · 3adeb2f0
      ddkilzer authored
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=11729
                REGRESSION: Crash closing page with frames after selection
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::detachFromParent): Added call to pageDestroyed().
              * page/FrameTree.cpp:
              (WebCore::FrameTree::appendChild): Added an assertion that the parent and
              the child are in the same page.
              (WebCore::FrameTree::removeChild): Added calls to decrementFrameCount() and pageDestroyed().
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18460 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3adeb2f0
    • ddkilzer's avatar
      2006-12-28 David Kilzer <ddkilzer@webkit.org> · 9dfc8c11
      ddkilzer authored
              Reviewed by Mitz.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=12016
                REGRESSION: fast/text/stroking-decorations.html test fails with bus error in no-svg build
      
              No test cases (no change in functionality).
      
              * platform/TextStream.cpp: Properly initialize presicionFormats.
              * rendering/RenderTreeAsText.cpp:
              (WebCore::externalRepresentation): HTML tests now print out the stroke width, which is a float,
              so the precision needs to be set.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18459 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9dfc8c11