1. 05 Jun, 2006 9 commits
    • ggaren's avatar
      Reviewed and landed by Geoff. · b3ebb432
      ggaren authored
              - fix a regression in ecma_3/String/regress-104375.js
              * kjs/string_object.cpp:
              (substituteBackreferences): If a 2-digit back reference is out of range,
              parse it as a 1-digit reference (followed by the other digit). This matches
              Firefox's behavior.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14742 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • sfalken's avatar
      2006-06-06 Steve Falkenburg <sfalken@apple.com> · b3562e42
      sfalken authored
              Fix build break
              * platform/win/TemporaryLinkStubs.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • ddkilzer's avatar
      LayoutTests: · 00974eb7
      ddkilzer authored
              Reviewed by mjs.
              testcases for http://bugzilla.opendarwin.org/show_bug.cgi?id=5564
              'font' shorthand parsing should be more tolerant in quirks mode
              * fast/css/font_property_compatibility-expected.checksum: Added.
              * fast/css/font_property_compatibility-expected.png: Added.
              * fast/css/font_property_compatibility-expected.txt: Added.
              * fast/css/font_property_compatibility.html: Added.
              * fast/css/font_property_normal-expected.checksum: Added.
              * fast/css/font_property_normal-expected.png: Added.
              * fast/css/font_property_normal-expected.txt: Added.
              * fast/css/font_property_normal.html: Added.
              Reviewed by mjs.
              'font' shorthand parsing should be more tolerant in quirks mode
              When not in strict mode accept font property specifications
              lacking a font family part, like WinIE does.
              * css/cssparser.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14740 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • bdakin's avatar
      Reviewed by Darin. · af5f98b2
      bdakin authored
              Fix for <rdar://problem/4567520> Pixel cracks in weather widget at 
              1.83 scaling
              To prevent pixel cracks at non-integral scaling factors, before we 
              call into CG to draw an image, we have to convert the rect to 
              device space, round the origin and size to integers in device 
              space, and convert back to user space. 
              No test cases added since this only affects non-1.0 resolution 
              scale factors.
              * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
              (WebCore::JSCanvasRenderingContext2D::drawImage): drawImage() now 
              takes FloatRects.
              * html/CanvasPattern.cpp:
              (WebCore::patternCallback): Call roundToDevicePixels()
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::drawImage): drawImage() now 
              takes FloatRects and call roundToDevicePixels()
              * html/CanvasRenderingContext2D.h: drawImage() now takes 
              * html/HTMLCanvasElement.cpp:
              (WebCore::HTMLCanvasElement::paint): Call roundToDevicePixels()
              * kcanvas/device/quartz/QuartzSupport.mm:
              (WebCore::debugDumpCGImageToFile): Same as above.
              * platform/GraphicsContext.h:
              * platform/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::roundToDevicePixels): Takes care of 
              converting between coordinate spaces and rounding.
              * platform/mac/ImageMac.mm: Call roundToDevicePixels()
              (WebCore::Image::draw): Same as above.
              (WebCore::drawPattern): Same as above.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • ddkilzer's avatar
      LayoutTests: · 0f15b235
      ddkilzer authored
              Reviewed by ggaren.
              - Test results for http://bugzilla.opendarwin.org/show_bug.cgi?id=9310
              Add missing DOM prototypes and other DOM cleanup
              * fast/dom/global-constructors-expected.txt: Fixed test results.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • hyatt's avatar
      Fix for perf regression with single-processor windows machines on ibench. · ac9a81a3
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • ggaren's avatar
      Reviewed By Maciej. · 43eef597
      ggaren authored
              Darin already reviewed this change on the branch. See <rdar://problem/4317701>.
              - Fixed <rdar://problem/4291345> PCRE overflow in Safari JavaScriptCore
              No test case because there's no behavior change.
              * pcre/pcre_compile.c:
              (read_repeat_counts): Check for integer overflow / out of bounds
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14736 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • ggaren's avatar
      LayoutTests: · 27b705a1
      ggaren authored
              - Merged test-prototypes.html into global-constructors.html
              - Added prototypes.html, which tests for some missing prototypes in DOM objects
              * fast/dom/global-constructors-expected.txt:
              * fast/dom/global-constructors.html:
              * fast/dom/prototypes-expected.txt: Added.
              * fast/dom/prototypes.html: Added.
              * fast/dom/test-prototypes-expected.txt: Removed.
              * fast/dom/test-prototypes.html: Removed.
              * fast/dom/undetectable-document-all-expected.txt: Updated to reflect
              change from "HTMLCollection" to "Collection"
              Reviewed by Darin.
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=9310
              Add missing DOM prototypes and other DOM cleanup
              - Added the built-in object prototype to DOM objects that were missing it
              so that primitive operations like == work on them.
              - Removed dead EventConstructor class (it's autogenerated now)
              - Changed HTML collections to describe themselves as "[object Collection]",
              to match IE.
              - Made DOMCSSRule constructor private because JSCSSRule is the class
              to use.
              * bindings/js/JSHTMLOptionElementConstructor.cpp:
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_css.h:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.h:
              * bindings/js/kjs_html.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14735 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • ggaren's avatar
      Reviewed by aliu. · df6e53c9
      ggaren authored
              - Changed CString length from int to size_t. We sould probably do this
              for UString, too. (Darin, if you're reading this: Maciej said so.)
              * kjs/function.cpp:
              * kjs/ustring.cpp:
              * kjs/ustring.h:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14734 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  2. 04 Jun, 2006 10 commits
    • darin's avatar
      Reviewed by Maciej. · 77cb9a9c
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9031
                REGRESSION: Crash when closing tabs on newegg.com
              - removed a no-longer-needed Win32-specific workaround (not reviewed)
              * bindings/js/kjs_window.cpp: Added include of <wtf/MathExtras.h>.
              (WebCore::floatFeature): Remove WIN32 ifdef around isnan.
              (WebCore::toJS): Add null checks.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14733 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      LayoutTests: · 9d783fab
      darin authored
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9176
                REGRESSION: repro crash in WebCore::StringImpl::hash() const + 28 (StringImpl.h:67)
              * fast/loader/link-no-URL.html: Added.
              * fast/loader/link-no-URL-expected.txt: Added.
              Reviewed by Maciej.
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9176
                REGRESSION: repro crash in WebCore::StringImpl::hash() const + 28 (StringImpl.h:67)
              Test: fast/loader/link-no-URL.html
              * loader/Cache.h:
              * loader/Cache.cpp:
              (WebCore::Cache::updateCacheStatus): Removed the URL parameter. Instead get the URL
              from the cached object itself. Callers were passing in the wrong URL. When it was a
              null string, it caused the crash mentioned above. But in other cases it may have
              caused some other minor problems as well. Added an assert to catch cases where the
              URL is null (should never happen).
              (WebCore::Cache::requestImage): Changed call site to not pass URL.
              (WebCore::Cache::requestStyleSheet): Ditto.
              (WebCore::Cache::requestScript): Ditto.
              (WebCore::Cache::requestXSLStyleSheet): Ditto.
              (WebCore::Cache::requestXBLDocument): Ditto.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14732 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • ggaren's avatar
      Reviewed by Maciej. · 7a104b48
      ggaren authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=9304
              Minor cleanup in JavaScriptCore
              * kjs/value.h: Removed redundant declarations
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14731 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Adele. · c64965d6
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7291
                REGRESSION: delete key does not work in isIndex fields
              * platform/mac/WebCoreTextField.mm:
              (inputElement): Added. Helper function to get the Objective-C wrapper for an
              input element associated with a QTextEdit. Returns nil if the element is not
              an input element. The bug was caused by passing a non-input element to the
              delegate methods.
              (-[KWQTextFieldController controlTextDidBeginEditing:]): Use inputElement
              and don't make the delegate call at all if there is none. This happens only
              with isindex elements; it's not important to have auto-fill work with those.
              (-[KWQTextFieldController controlTextDidEndEditing:]): Ditto.
              (-[KWQTextFieldController controlTextDidChange:]): Ditto.
              (-[KWQTextFieldController control:textShouldEndEditing:]): Ditto.
              (-[KWQTextFieldController control:textView:doCommandBySelector:]): Ditto.
              (-[KWQTextFieldController textView:shouldHandleEvent:]): Ditto.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14730 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Anders. · a9406af1
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8995
                memory leak in XPath code -- seen in layout tests
              - fixed malloc error on exit due to SVGDOMImplementation destructor
              - attempted to fix the no-XPATH_SUPPORT build by adding an #if
              - changed around includes and header-file formatting in XPath code
              * bindings/scripts/CodeGeneratorJS.pm: Include PlatformString.h when
              generating the bindings for XPathNSResolver.
              * dom/DOMImplementation.h: Added a virtual destructor for the benefit of
              * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::~DOMImplementation): Added.
              * ksvg2/svg/SVGDOMImplementation.h: Reformatted a bit, removed unneeded declarations.
              * ksvg2/svg/SVGDOMImplementation.cpp:
              (SVGDOMImplementation::~SVGDOMImplementation): Remove commented-out code.
              (SVGDOMImplementation::createDocument): Remove a reference to KDOMView.
              * xpath/XPathExpression.cpp:
              (WebCore::XPathExpression::createExpression): Called release to avoid a tiny bit of
              reference count churn.
              (WebCore::XPathExpression::evaluate): Set exception code explicitly, because the code
              relies on it being 0 when the function succeeds.
              * xpath/XPathResult.cpp:
              (WebCore::InvalidatingEventListener::InvalidatingEventListener): Removed
              unneeded target node data member.
              (WebCore::XPathResult::XPathResult): Updated for enum name changes and
              InvalidatingEventListener name change. Added an assertion.
              * xpath/impl/XPathFunctions.h: Removed the FunctionLibrary class. Changed the parameter
              for createFunction to be a String instead of char*.
              * xpath/impl/XPathFunctions.cpp: Got rid of local implementation of "round", and
              used <wtf/MathExtras.h> instead. Also removed unused Interval::asString. Marked all
              the Interval functions inline.
              (WebCore::XPath::FunSubstring::doEvaluate): Use lround() instead of (long)round().
              (WebCore::XPath::FunLang::doEvaluate): Removed some unneeded temporary String variables.
              Use equalIgnoringCase() instead of calling lower() on two strings.
              (WebCore::XPath::createFunctionMap): Changed how this works so that it's all local to
              this function. Also removed a duplicate entry for the "last" function.
              (WebCore::XPath::createFunction): Changed from a member function to a separate function.
              Also changed so that if the args are not used in the function they are deleted.
              This was one of the sources of the storage leaks.
              * xpath/impl/XPathGrammar.y: Put XPATH_SUPPORT ifdef in. Replaced <num> with values of
              specific types (numop, eqop). Updated for name change from AxisType to Axis. Changed
              tokens that were declared as <str> but weren't actually using the string to be
              declared with no type (PLUS, MINUS, OR, AND, DOTDOT, SLASHSLASH). Replaced use of
              unregisterString, unregisterPredicateVector, and unregisterExpressionVector to
              call delete functions instead that both unregister and delete. Change call sites for
              createFunction to just use the String, removing the deprecatedString().latin1() call
              that is no longer needed. Added a call to unregisterParseNode that was missing in the
              "FilterExpr DescendantOrSelf RelativeLocationPath" production.
              * xpath/impl/XPathParser.h: Changed Token to hold a String, Step::Axis, NumericOp::Opcode,
              and EqTestOp::Opcode. The token ID number tells us which to use. Rearranged to put the private
              part of the Parser class last. Moved a number of private things inside the cpp file.
              * xpath/impl/XPathParser.cpp:
              (WebCore::XPath::charCat): Made this a separate function, instead of a static member.
              (WebCore::XPath::isAxisName): Ditto. Also put the global axis map inside the function,
              allowing use of a map instead of a map pointer.
              (WebCore::XPath::isNodeTypeName): Ditto.
              (WebCore::XPath::Parser::isOperatorContext): Made this const.
              (WebCore::XPath::Parser::makeTokenAndAdvance): Got rid of the "int" version of this.
              By using the actual types, we can safely use overload instead.
              (WebCore::XPath::Parser::lexString): Use substring() instead of deprecatedString().mid().
              (WebCore::XPath::Parser::lexNumber): Ditto.
              (WebCore::XPath::Parser::lexNCName): Changed to return a bool and a String instead of a
              Token. This avoids the hack of using a token value of "ERROR + 1" which I found quite
              confusing and is also a bit more explicit.
              (WebCore::XPath::Parser::lexQName): Ditto.
              (WebCore::XPath::Parser::nextTokenInternal): Changed to adapt to the changes above and
              to remove some unneeded else statements.
              (WebCore::XPath::Parser::lex): Changed the logic that sets up yylval to use the token ID
              to decide what the type is. This matches what the grammar expects, and removes the need
              for the token object to track which part of the value is good and the need to reserve 0
              to have a special meaning.
              (WebCore::XPath::Parser::parseStatement): Added code to delete the predicates and the
              expressions in the predicate and expression vectors. Before, we were only deleting
              the vectors. This was one of the sources of the storage leaks.
              (WebCore::XPath::Parser::deletePredicateVector): Renamed, and changed to delete
              the vector. However this does not delete the predicates in the vector.
              (WebCore::XPath::Parser::deleteExpressionVector): Renamed, and changed to delete
              the vector. However this does not delete the expressions in the vector.
              (WebCore::XPath::Parser::deleteString): Renamed, and changed to delete the string.
              * xpath/impl/XPathPredicate.h:
              * xpath/impl/XPathPredicate.cpp:
              (WebCore::XPath::NumericOp::NumericOp): Changed opcode from an int to an enum, and
              renamed to "opcode" instead of "opCode".
              (WebCore::XPath::NumericOp::doEvaluate): More of the same.
              (WebCore::XPath::EqTestOp::EqTestOp): Ditto.
              (WebCore::XPath::EqTestOp::doEvaluate): Ditto.
              (WebCore::XPath::LogicalOp::LogicalOp): Ditto.
              (WebCore::XPath::LogicalOp::shortCircuitOn): Ditto.
              (WebCore::XPath::Predicate::evaluate): Removed an unneeded "new".
              * xpath/impl/XPathStep.h:
              * xpath/impl/XPathStep.cpp: Renamed AxisType to Axis. Removed unused axisAsString
              function and default constructor.
              * xpath/impl/XPathValue.h: Renamed the type constants to have a Value suffix,
              instead of the underscore suffix used before on NodeVector and String.
              * xpath/impl/XPathValue.cpp: Updated for name change. Added asserts.
              * xpath/impl/XPathVariableReference.cpp: (WebCore::XPath::VariableReference::doEvaluate):
              Use a reference instead of a pointer.
              * xpath/XPathEvaluator.cpp:
              * xpath/XPathEvaluator.h:
              * xpath/XPathExpression.h:
              * xpath/XPathNSResolver.cpp:
              * xpath/XPathNSResolver.h:
              * xpath/XPathNamespace.cpp:
              * xpath/XPathNamespace.h:
              * xpath/XPathResult.h:
              * xpath/impl/XPathExpressionNode.cpp:
              * xpath/impl/XPathExpressionNode.h:
              * xpath/impl/XPathPath.cpp:
              * xpath/impl/XPathPath.h:
              * xpath/impl/XPathUtil.cpp:
              * xpath/impl/XPathUtil.h:
              * xpath/impl/XPathVariableReference.h:
              Reformatted and changed includes around; no substantive changes.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      Reviewed by Anders. · 57617054
      darin authored
              - changed deleteAllValues so it can work on "const" collections
                Deleting the values affects the values, not the pointers in the
                collection, so it's legitimate to do it to a const collection,
                and a case of that actually came up in the XPath code.
              * wtf/HashMap.h:
              (WTF::deleteAllPairSeconds): Use const iterators.
              (WTF::deleteAllValues): Take const HashMap reference as a parameter.
              * wtf/HashSet.h:
              (WTF::deleteAllValues): Take const HashSet reference as a parameter,
              and use const iterators.
              * wtf/Vector.h:
              (WTF::deleteAllValues): Take const Vector reference as a parameter.
              - added more functions that are present in <math.h> on some platforms,
                but not on others; moved here from various files in WebCore
              * wtf/MathExtras.h:
              (isinf): Added.
              (isnan): Added.
              (lround): Added.
              (lroundf): Tweaked.
              (round): Added.
              (roundf): Tweaked.
              (signbit): Added.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14728 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • ddkilzer's avatar
      LayoutTests: · fb5e6eec
      ddkilzer authored
              Reviewed by hyatt.
              - tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=9213
                Absolutely positioned objects with relatively positioned inline 
                containing blocks are rendered incorrectly
              * fast/block/positioning/absolute-in-inline-ltr-2.html: Added.
              * fast/block/positioning/absolute-in-inline-ltr-3.html: Added.
              * fast/block/positioning/absolute-in-inline-ltr.html: Added.
              * fast/block/positioning/absolute-in-inline-rtl-2.html: Added.
              * fast/block/positioning/absolute-in-inline-rtl-3.html: Added.
              * fast/block/positioning/absolute-in-inline-rtl.html: Added.
              * fast/block/positioning/absolute-in-inline-short-ltr.html: Added.
              * fast/block/positioning/absolute-in-inline-short-rtl.html: Added.
              Reviewed by hyatt.
              - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9213
                Absolutely positioned objects with relatively positioned inline 
                containing blocks are rendered incorrectly
              * rendering/RenderBox.cpp:
              * rendering/RenderBox.h:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14727 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • ddkilzer's avatar
      WebKitSite: · 8890bb00
      ddkilzer authored
              Reviewed by ggaren.
              JavaScript error when loading WebKit blog page
              * blog/wp-content/themes/webkit/sidebar.php: Removed unused JavaScript.  Synced with nav.inc.
              * nav.inc: Removed evil tabs--whitespace change only.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14721 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • ddkilzer's avatar
      WebKitTools: · 8816a4ef
      ddkilzer authored
              Reviewed by darin.
              Teach svn-create-patch and friends to work with binary files
              * Scripts/svn-apply: Updated to use base64-encoded text for binary files when applying patches.
              * Scripts/svn-create-patch: Updated to include binary file content as base64-encoded text in patches.
              * Scripts/svn-unapply: Updated to recognize binary files when unapplying patches.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14718 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • andersca's avatar
      WebCore: · 0315a98f
      andersca authored
      2006-06-04  Anders Carlsson  <acarlsson@apple.com>
              Reviewed by Darin.
              document.evaluate and createNSResolver miss on namespaced elements
              * xpath/XPathExpression.cpp:
              Pass the resolver to the parser.
              * xpath/XPathResult.cpp:
              Fix off-by-one error.
              * xpath/impl/XPathExpressionNode.h:
              Get rid of the resolver in the evaluation context.
              * xpath/impl/XPathGrammar.y:
              Fetch the resolver from the parser. Only return the local name.
              * xpath/impl/XPathParser.cpp:        
              * xpath/impl/XPathParser.h:
              Update to hold the resolver.
              * xpath/impl/XPathStep.cpp:
              If the parser has stored a namespace URI, set it.
              Check namespace URIs.
              * xpath/impl/XPathStep.h:
              Add m_namespaceURI.
      2006-06-04  Anders Carlsson  <acarlsson@apple.com>
              Reviewed by Darin.
              document.evaluate and createNSResolver miss on namespaced elements
              * fast/xpath: Added.
              * fast/xpath/xpath-namespaces-expected.txt: Added.
              * fast/xpath/xpath-namespaces.html: Added.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14717 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  3. 03 Jun, 2006 11 commits
    • ddkilzer's avatar
      LayoutTests: · a0cd6749
      ddkilzer authored
              Reviewed by Eric.
              Added missing pixel test output:
              TFOOT borders are copied to THEAD and TBODY
              * fast/table/border-collapsing/border-collapsing-head-foot-expected.png: Added.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14716 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • ddkilzer's avatar
      LayoutTests: · 6a28aac9
      ddkilzer authored
              Reviewed by mjs.  Tweaked and landed by ddkilzer.
              With java disabled wrong information is displayed.
              * fast/replaced/applet-rendering-java-disabled.html: Added.
              * fast/replaced/applet-rendering-java-disabled-expected.checksum: Added.
              * fast/replaced/applet-rendering-java-disabled-expected.html: Added.
              * fast/replaced/applet-rendering-java-disabled-expected.png: Added.
              * tables/mozilla_expected_failures/bugs/bug8499-expected.checksum: Changed after removing RenderEmptyApplet.
              * tables/mozilla_expected_failures/bugs/bug8499-expected.png: Ditto.
              * tables/mozilla_expected_failures/bugs/bug8499-expected.txt: Ditto.
              Reviewed by mjs.  Tweaked and landed by ddkilzer.
              With java disabled wrong information is displayed.
              Test: fast/replaced/applet-rendering-java-disabled.html
              Match WinIE, render applet content inline when java is
              * WebCore.vcproj/WebCore/WebCore.vcproj: Removed RenderEmptyApplet.cpp and RenderEmptyApplet.h.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * WebCoreSources.bkl: Ditto.
              * html/HTMLAppletElement.cpp:
              * rendering/RenderEmptyApplet.cpp: Removed.
              * rendering/RenderEmptyApplet.h: Removed.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • thatcher's avatar
      LayoutTests: · dd4c7a30
      thatcher authored
              Reviewed by Hyatt.
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9252
                REGRESSION: Very odd roll-over issues (content disappearing)
              * fast/dom/HTMLLinkElement/pending-stylesheet-count.html: Added.
              * fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt: Added.
              * fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.png: Added.
              * fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.checksum: Added.
              Reviewed by Hyatt.
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9252
                REGRESSION: Very odd roll-over issues (content disappearing)
              Test: fast/dom/HTMLLinkElement/pending-stylesheet-count.html
              * html/HTMLLinkElement.cpp:
              (WebCore::HTMLLinkElement::~HTMLLinkElement): If the stylesheet was being
              loaded, call stylesheetLoaded() on the document, to keep the pending stylesheet
              count correct.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • ddkilzer's avatar
      WebKitTools: · 6190dbb4
      ddkilzer authored
              Reviewed by Maciej.
              Performance improvement for svn-create-patch
              * Scripts/svn-create-patch: Undef $indexPath after all paths have been fixed for a given patch.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14713 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • darin's avatar
      - fix Windows build · 42dc9411
      darin authored
              * platform/Widget.h: Moved scaleFactor function out of Apple-specific
              section of the header into the common part.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • bdakin's avatar
      Reviewed by Darin. · 45edb34c
      bdakin authored
              Fix for <rdar://problem/4537274> HiDPI: <canvas> needs to apply a 
              scale. <canvas> needs to scale itself along with whatever scale 
              factor is set on the window.
              * html/HTMLCanvasElement.cpp:
              (WebCore::HTMLCanvasElement::createDrawingContext): Get the scale 
              factor and use it to create a larger buffer and to scale the 
              * platform/Widget.h: Provide a new function that returns the user 
              space scale factor.
              * platform/mac/WidgetMac.mm:
              (WebCore::Widget::scaleFactor): Get the scale factor from the 
              window and return it.
              * platform/win/WidgetWin.cpp:
              (WebCore::Widget::scaleFactor): Just return 1.0f for now.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14711 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • ddkilzer's avatar
      WebKit: · 76ffa516
      ddkilzer authored
              Reviewed by darin.
              Teach svn-apply and svn-unapply to patch ChangeLogs cleanly
              * Scripts/svn-apply: Fixed to apply ChangeLog patches without failing.
              * Scripts/svn-unapply: Ditto.  Also simplified reversing a deletion.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • sfalken's avatar
      2006-06-03 Steve Falkenburg <sfalken@apple.com> · f06f4993
      sfalken authored
              Reviewed by hyatt.
              Removed unused code.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14709 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • sfalken's avatar
      2006-06-03 Steve Falkenburg <sfalken@apple.com> · 784de872
      sfalken authored
              Reviewed by hyatt.
              Switch Spinneret to new hosting mechanism
              * Spinneret/Spinneret.sln:
              * Spinneret/Spinneret/Spinneret.cpp:
              * Spinneret/Spinneret/Spinneret.h:
              * Spinneret/Spinneret/Spinneret.vcproj:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14708 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • sfalken's avatar
      2006-06-03 Steve Falkenburg <sfalken@apple.com> · 577e455b
      sfalken authored
              Reviewed by hyatt.
              Add implementation of loadHTMLString for Spinneret
              * COM/WebFrame.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • sfalken's avatar
      2006-06-03 Steve Falkenburg <sfalken@apple.com> · a41fd2c4
      sfalken authored
              Reviewed by hyatt.
              Don't send empty referrers.  Fixes image load fail on Spinneret default content.
              * platform/win/TransferJobWin.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  4. 02 Jun, 2006 10 commits
    • ddkilzer's avatar
      JavaScriptCore: · 31459a5c
      ddkilzer authored
              Reviewed by ggaren.
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=9234
                Implement $&, $' and $` replacement codes in String.prototype.replace
              Test: fast/js/string-replace-3.html
              * kjs/string_object.cpp:
              (substituteBackreferences): Added support for $& (matched substring),
              $` (everything preceding matched substring), $' (everything following
              matched substring) and 2-digit back references, and cleaned up a little.
              Reviewed by ggaren.
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9234
                Implement $&, $' and $` replacement codes in String.prototype.replace
              * fast/js/resources/string-replace-3.js: Added.
              * fast/js/string-replace-3-expected.txt: Added.
              * fast/js/string-replace-3.html: Added.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • adele's avatar
      Reviewed by Darin. · 7fd972a6
      adele authored
              Windows theme for textareas.  Also made some formatting changes. 
              * rendering/RenderThemeWin.cpp:
              * rendering/RenderThemeWin.h:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • thatcher's avatar
      Reviewed by Hyatt, checked in by Tim H. · 83434681
      thatcher authored
              Explicitly run perl on *.pl files instead of relying
              on Windows shell figuring out which program to run for
              this extention.
              * DerivedSources.make:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • adele's avatar
      Reviewed by Darin. · 022e27a6
      adele authored
              Set incremental linking to no. This seems to fix a build problem I was seeing
              where dftables couldn't find a dll. 
              * JavaScriptCore.vcproj/dftables/dftables.vcproj:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14702 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • thatcher's avatar
      LayoutTests: · 8991c154
      thatcher authored
              Reviewed by Hyatt, checked in by Tim H.
              For: http://bugzilla.opendarwin.org/show_bug.cgi?id=9115
              Added test case to test opacity layers, in particular, opacities
              with a value of zero.
             * fast/css/ZeroOpacityLayers.html: Added.
             * fast/css/ZeroOpacityLayers-expected.txt: Added.
             * fast/css/ZeroOpacityLayers-expected.png: Added.
             * fast/css/ZeroOpacityLayers-expected.checksum: Added.
             * fast/css/ZeroOpacityLayers2.html: Added.
             * fast/css/ZeroOpacityLayers2-expected.txt: Added.
             * fast/css/ZeroOpacityLayers2-expected.png: Added.
             * fast/css/ZeroOpacityLayers2-expected.checksum: Added.
              Reviewed by Hyatt, checked in by Tim H.
              fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=9115
              Changed RenderLayer to only render layers that are not
              totally transparent.
              * rendering/RenderLayer.cpp
              Changed function to also check if the layer is totally transparent
              and if it is, don't bother painting it.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • thatcher's avatar
      LayoutTests: · 864dbca9
      thatcher authored
              Reviewed by Hyatt, checked in by Tim H.
              Adding testcase for bug 8223.
              * fast/dom/css-inline-style-important-expected.checksum: Added.
              * fast/dom/css-inline-style-important-expected.png: Added.
              * fast/dom/css-inline-style-important-expected.txt: Added.
              * fast/dom/css-inline-style-important.html: Added.
              Reviewed by Hyatt, checked in by Tim H.
              WebKit fails to update style on element via DOM
              Handle !important by detecting it and using a different code
              path from normal priority.
              * bindings/js/kjs_css.cpp:
              * css/CSSStyleDeclaration.cpp:
              * css/CSSStyleDeclaration.h:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • mjs's avatar
      Reviewed by Geoff, checked in by Maciej. · 8fb7021f
      mjs authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9236
              REGRESSION: focus method does not work on some elements before they are laid out
              * dom/Element.cpp: (WebCore::Element::focus): Do the updateLayout call before
              calling isFocusable, since isFocusable looks at the size of the renderer.
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14699 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • sfalken's avatar
      2006-06-02 Steve Falkenburg <sfalken@apple.com> · ffa0bf6f
      sfalken authored
              Reviewed by darin.
              Updated build script
              * Scripts/build-webkit:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14691 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • sfalken's avatar
      2006-06-02 Steve Falkenburg <sfalken@apple.com> · 17f579c8
      sfalken authored
              Reviewed by darin.
              Updated to latest hosting interface
              * WebFramePrivate.cpp:
              * WebFramePrivate.h:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14690 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • sfalken's avatar
      2006-06-02 Steve Falkenburg <sfalken@apple.com> · 4eea401f
      sfalken authored
              Reviewed by darin.
              Platform hookup fixes
              * bridge/win/FrameWin.cpp:
              * bridge/win/FrameWin.h:
              * platform/win/TemporaryLinkStubs.cpp:
              * platform/win/TransferJobWin.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14689 268f45cc-cd09-0410-ab3c-d52691b4dbfc