Timeline


and

01/07/07:

22:45 Changeset [18659] by rwlbuis

Reviewed by Eric.

http://bugzilla.opendarwin.org/show_bug.cgi?id=10587
pointer-events is not implemented for RenderSVGImage or RenderSVGText
Implement pointer-events for raster images and svg text.

21:17 Changeset [18658] by ddkilzer

JavaScriptCore:

Reviewed by Darin.

  • kjs/date_object.cpp: (KJS::DateProtoFunc::callAsFunction): Removed dead code.
21:11 Changeset [18657] by ddkilzer

JavaScriptCore:

Reviewed by Darin.

Change JNI so that it is not wrapped in the PLATFORM(MAC) ifdef, enabling
other platforms who have JNI to use it.

  • bindings/jni/jni_instance.h: Removed unnecessary include of <CoreFoundation/CoreFoundation.h>
  • bindings/jni/jni_utility.cpp: (KJS::Bindings::setJavaVM):
  • bindings/jni/jni_utility.h: Added new method for clients to set the JavaVM
  • bindings/runtime.cpp: (KJS::Bindings::Instance::createBindingForLanguageInstance): Changed code to utilize new #if HAVE(JNI)
  • kjs/config.h: Added new #define for JNI, ie HAVE_JNI
21:08 Changeset [18656] by ddkilzer

JavaScriptCore:

Reviewed by Darin.

Fix http://bugs.webkit.org/show_bug.cgi?id=11431
ARM platform has some byte alignment issues

Fix for NaN being 4 bytes and it must start on a byte boundary
for ARM architectures.

  • kjs/fpconst.cpp: (KJS::):
17:16 Changeset [18655] by hyatt

Fix a regression where border-radius was not clipping the background when border was set to none.
Fix multi-line inline flow painting to properly apply border-radius to the background only at the
beginning of the first line and end of the last line.

Reviewed by eric

  • rendering/InlineFlowBox.cpp: (WebCore::InlineFlowBox::paintBackground):
  • rendering/RenderBox.cpp: (WebCore::RenderBox::paintBackground): (WebCore::RenderBox::paintBackgroundExtended):
  • rendering/RenderBox.h:
  • rendering/RenderObject.h: (WebCore::RenderObject::paintBackgroundExtended):
15:31 Changeset [18654] by hyatt

LayoutTests:

Add support for the CSS3 box-shadow property.

Reviewed by olliej

  • fast/box-shadow/basic-shadows-expected.checksum: Added.
  • fast/box-shadow/basic-shadows-expected.png: Added.
  • fast/box-shadow/basic-shadows-expected.txt: Added.
  • fast/box-shadow/basic-shadows.html: Added.

WebCore:

Add support for the CSS3 box-shadow property.

Reviewed by olliej

fast/box-shadow/ contains the tests for this feature.

  • platform/graphics/GraphicsContext.cpp: (WebCore::GraphicsContext::clipOutRoundedRect):
  • platform/graphics/GraphicsContext.h:
  • platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::fillRoundedRect): (WebCore::GraphicsContext::clipOut): (WebCore::GraphicsContext::clipOutEllipseInRect):
  • platform/graphics/qt/GraphicsContextQt.cpp: (WebCore::GraphicsContext::fillRoundedRect): (WebCore::GraphicsContext::clipOut): (WebCore::GraphicsContext::clipOutEllipseInRect):
  • rendering/InlineFlowBox.cpp: (WebCore::InlineFlowBox::paint): (WebCore::InlineFlowBox::paintBoxShadow): (WebCore::InlineFlowBox::paintBoxDecorations): (WebCore::shouldDrawTextDecoration): (WebCore::InlineFlowBox::paintTextDecorations):
  • rendering/InlineFlowBox.h:
  • rendering/InlineRunBox.h: (WebCore::InlineRunBox::paintBoxDecorations): (WebCore::InlineRunBox::paintTextDecorations):
  • rendering/RenderBlock.cpp: (WebCore::RenderBlock::paintObject):
  • rendering/RenderBox.cpp: (WebCore::RenderBox::setStyle): (WebCore::RenderBox::paintBoxDecorations): (WebCore::RenderBox::paintBackgroundExtended):
  • rendering/RenderFieldset.cpp: (WebCore::RenderFieldset::paintBoxDecorations):
  • rendering/RenderHTMLCanvas.cpp: (WebCore::RenderHTMLCanvas::paint):
  • rendering/RenderImage.cpp: (WebCore::RenderImage::paint):
  • rendering/RenderImage.h:
  • rendering/RenderListMarker.cpp: (WebCore::RenderListMarker::paint):
  • rendering/RenderObject.cpp: (WebCore::RenderObject::mustRepaintBackgroundOrBorder): (WebCore::RenderObject::paintBoxShadow): (WebCore::RenderObject::dump): (WebCore::RenderObject::setStyle):
  • rendering/RenderObject.h: (WebCore::RenderObject::hasBoxDecorations): (WebCore::RenderObject::setHasBoxDecorations):
  • rendering/RenderSVGContainer.cpp: (WebCore::RenderSVGContainer::paint):
  • rendering/RenderTable.cpp: (WebCore::RenderTable::paint): (WebCore::RenderTable::paintBoxDecorations):
  • rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::RenderTableCell): (WebCore::RenderTableCell::setStyle): (WebCore::RenderTableCell::paintBoxDecorations):
  • rendering/RenderWidget.cpp: (WebCore::RenderWidget::paint):
14:37 New features in WebKit since Safari 2.0 edited by eric@webkit.org
(diff)
14:36 New features in WebKit since Safari 2.0 edited by eric@webkit.org
(diff)
14:35 New features in WebKit since Safari 2.0 created by eric@webkit.org
14:29 WikiStart edited by eric@webkit.org
(diff)
10:15 Changeset [18653] by rwlbuis

Reviewed by weinig.

Correct results from previous patch.

08:47 Changeset [18652] by rwlbuis

Reviewed by weinig.

http://bugs.webkit.org/show_bug.cgi?id=10362
SVG needs to support SVGError events and some form of "error state"
Report SVG warnings and errors on (JS) console.
Expose line and column number getters in Tokenizer in
order to display them with the error message.

06:00 Changeset [18651] by zimmermann

Reviewed by Sam.
Cleanup code & fix InlineBox positioning when text-anchor is used.

04:47 Changeset [18650] by staikos

Make it compile and link again. (Qt) Includes implementation of a few stubs
which should be moved to other locations, as well as a non-Qt-specific change
to make it compile (nil->ResourceResponse()). Qt port continues to function as
well as before.

04:01 Changeset [18649] by ap

Updated pixel results that weren't landed with r17141.

  • http/tests/incremental/slow-utf8-css-expected.checksum:
  • http/tests/incremental/slow-utf8-css-expected.png:
03:47 Changeset [18648] by ap

2007-01-07 Mitz Pettel <mitz@webkit.org>

Reviewed by Mark Rowe.

Test: fast/forms/listbox-clip.html

  • platform/mac/PlatformScrollBarMac.mm: (-[WebCoreScrollBar initWithPlatformScrollbar:]): Get the correct scrollbar width/height based on control size.
  • rendering/RenderListBox.cpp: Renamed optionsSpacingLeft to optionsSpacingHorizontal since it is applied on both sides. (WebCore::RenderListBox::calcMinMaxWidth): Account for optionsSpacingHorizontal. Not including the spacing before went unnoticed since the scrollbar was lying about its width by exactly the same amount. (WebCore::RenderListBox::paintObject): Clip out the scrollbar. (WebCore::RenderListBox::paintItemForeground): Changed for the rename.
03:35 Changeset [18647] by ap

2007-01-07 Mitz Pettel <mitz@webkit.org>

Reviewed by Hyatt.

Test: fast/repaint/erase-overflow.html

  • rendering/RenderBox.cpp: (WebCore::RenderBox::setStyle): Added a repaint before changing hasOverflowClip to true, to ensure that the current overflow is erased.
03:26 Changeset [18646] by rwlbuis

Reviewed by Darin.

Patch for http://bugs.webkit.org/show_bug.cgi?id=12106
Changed URL from WebResourceLoadDelegate's webView:resource:willSendRequest:... is ignored

03:26 Changeset [18645] by ap

Re-apply r17618, which got reverted with CSS suite update.

Reviewed by Sam Weinig.

Fix a layout test failure that happened with additional fonts installed - replace a fancy
Unicode character with a plain asterisk.

  • css2.1/t0905-c414-flt-00-d-expected.checksum:
  • css2.1/t0905-c414-flt-00-d-expected.png:
  • css2.1/t0905-c414-flt-00-d-expected.txt:
  • css2.1/t0905-c414-flt-00-d.html:
03:14 Changeset [18644] by ap

Reviewed by Darin.

http://bugs.webkit.org/show_bug.cgi?id=10313
xsl:import doesn't work in stylesheets loaded via XMLHttpRequest

This is a partial fix that makes a couple more steps towards fixing the problem.

Test: fast/xsl/transform-xhr-doc.xhtml

  • xml/XSLTProcessor.cpp: (WebCore::xsltStylesheetPointer): Pass an URL for the stylesheet. I'm not sure why this constructor even needs it, given that it has a Node, but this is a small modifications that makes XSLImportRule try to load from a correct URL. (WebCore::XSLTProcessor::transformToString): Fix the crash for real this time.
00:37 Changeset [18643] by rwlbuis

Reviewed by Darin.

http://bugs.webkit.org/show_bug.cgi?id=12125
overflow attribute of the symbol element not respected

Copy the attribute map to the cloned node so the overflow on
the symbol is respected.

01/06/07:

20:29 Changeset [18642] by darin

Suggested by Mitz.

  • disabled 3 tests with results that are too font-dependent to be used as part of the test suite; two are tests of Armenian numbering and one is a test of some SVG font features which we do not support
  • css2.1/t1202-counter-10-b-expected.checksum: Removed.
  • css2.1/t1202-counter-10-b-expected.png: Removed.
  • css2.1/t1202-counter-10-b-expected.txt: Removed.
  • css2.1/t1202-counter-10-b.html: Removed.
  • css2.1/t1202-counters-10-b-expected.checksum: Removed.
  • css2.1/t1202-counters-10-b-expected.png: Removed.
  • css2.1/t1202-counters-10-b-expected.txt: Removed.
  • css2.1/t1202-counters-10-b.html: Removed.
  • svg/W3C-SVG-1.1/text-fonts-03-t-expected.checksum: Removed.
  • svg/W3C-SVG-1.1/text-fonts-03-t-expected.png: Removed.
  • svg/W3C-SVG-1.1/text-fonts-03-t-expected.txt: Removed.
  • svg/W3C-SVG-1.1/text-fonts-03-t.svg: Removed.
20:11 Changeset [18641] by darin

Reviewed and significantly tweaked by Darin.

  • ksvg2/svg/SVGMaskElement.h:
  • ksvg2/svg/SVGMaskElement.cpp: (WebCore::SVGMaskElement::drawMaskerContent): Changed to return auto_ptr since it returns a newly-created ImageBuffer.
  • ksvg2/svg/SVGPatternElement.cpp: (WebCore::SVGPatternElement::buildPattern): Changed to use auto_ptr since ImageBuffer::create now returns one.
  • platform/graphics/GraphicsContext.h: Removed the include of ImageBuffer.h, which was never needed, and the declaration of createImageBuffer, which is now a class member function of ImageBuffer.
  • platform/graphics/ImageBuffer.h: Replaced the constructor with a create function. Added a comment about the need to move renderSubtreeToImage elsewhere. Added an m_data member to store the data so it can be deleted when the object is done, made the m_size member non-platform-specific. Added a private constructor for use to create the CG version.
  • platform/graphics/cg/GraphicsContextCG.cpp: Removed GraphicsContext::createImageBuffer.
  • platform/graphics/cg/ImageBufferCG.cpp: (WebCore::ImageBuffer::create): Added. Replaces the old GraphicsContext::createImageBuffer function. (WebCore::ImageBuffer::ImageBuffer): Added m_data and m_context. (WebCore::ImageBuffer::~ImageBuffer): Added a fastFree of the data and got rid of the unneeded null check before calling CGImageRelease.
  • platform/graphics/svg/SVGPaintServerGradient.h: Removed the include of ImageBuffer.h and declared the ImageBuffer class instead.
  • platform/graphics/svg/SVGPaintServerPattern.h: Removed the include of ImageBuffer.h and declared the ImageBuffer class instead, and changed setTile to take an auto_ptr since it takes ownership of the ImageBuffer.
  • platform/graphics/svg/SVGPaintServerPattern.cpp: (WebCore::SVGPaintServerPattern::setTile): Ditto.
  • platform/graphics/svg/SVGResourceMasker.h: Removed the include of ImageBuffer.h and declared the ImageBuffer class instead, and changed setMask to take an auto_ptr since it takes ownership of the ImageBuffer.
  • platform/graphics/svg/SVGResourceMasker.cpp: (WebCore::SVGResourceMasker::setMask): Ditto.
  • platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: (WebCore::SVGPaintServerGradient::setup): Updated to use auto_ptr.
  • platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: Updated includes.
  • platform/graphics/svg/cg/SVGResourceMaskerCg.mm: (WebCore::SVGResourceMasker::applyMask): Updated to use auto_ptr.
  • other changes
  • ksvg2/svg/SVGAnimateTransformElement.cpp: (WebCore::SVGAnimateTransformElement::handleStartCondition): Remove unused variables.
09:15 Changeset [18640] by staikos

This is still X11-specific.

04:06 Changeset [18639] by ddkilzer

WebCore:

Reviewed by Maciej.

  • rendering/RenderCounter.cpp: (WebCore::destroyCounterNodeChildren): Delete the child counter nodes.

01/05/07:

22:24 Changeset [18638] by adele

Release build fix.

  • rendering/RenderListItem.cpp: (WebCore::RenderListItem::explicitValueChanged): Initialize listRenderer.
17:36 Changeset [18637] by darin

LayoutTests:

Reviewed by Hyatt.

  • added a new version of the CSS 2.1 test from the W3C site
  • added counters, list, and other CSS tests for my counter-related check-in
  • fast/css-generated-content/reset-content-to-initial-expected.txt: Updated to reflect a bug fix in CSS content property support.
  • fast/css/counters/*: Removed all the existing tests since they are now part of the CSS 2.1 test suite.
  • fast/css/counters/counter-text-security-expected.checksum: Added. New test.
  • fast/css/counters/counter-text-security-expected.png: Ditto.
  • fast/css/counters/counter-text-security-expected.txt: Ditto.
  • fast/css/counters/counter-text-security.html: Ditto.
  • fast/css/counters/counter-text-transform-expected.checksum: Added. New test.
  • fast/css/counters/counter-text-transform-expected.png: Ditto.
  • fast/css/counters/counter-text-transform-expected.txt: Ditto.
  • fast/css/counters/counter-text-transform.html: Ditto.
  • fast/lists/decimal-leading-zero-expected.checksum: Added. New test.
  • fast/lists/decimal-leading-zero-expected.png: Ditto.
  • fast/lists/decimal-leading-zero-expected.txt: Ditto.
  • fast/lists/decimal-leading-zero.html: Ditto.
  • fast/css/text-security-expected.checksum: Added. New test.
  • fast/css/text-security-expected.png: Ditto.
  • fast/css/text-security-expected.txt: Ditto.
  • fast/css/text-security.html: Ditto.
  • fast/lists/decimal-leading-zero-expected.checksum: Added. New test.
  • fast/lists/decimal-leading-zero-expected.png: Ditto.
  • fast/lists/decimal-leading-zero-expected.txt: Ditto.
  • fast/lists/decimal-leading-zero.html: Ditto.
  • fast/lists/li-values-expected.checksum: Added. New test.
  • fast/lists/li-values-expected.png: Ditto.
  • fast/lists/li-values-expected.txt: Ditto.
  • fast/lists/li-values.html: Ditto.
  • fast/css/import-rule-regression-11590-expected.checksum: Added. Missing pixel-test results.
  • fast/css/import-rule-regression-11590-expected.png: Ditto.
  • fast/dom/css-insert-import-rule-expected.checksum: Ditto.
  • fast/dom/css-insert-import-rule-expected.png: Ditto.
  • fast/forms/encoding-test-expected.checksum: Ditto.
  • fast/forms/encoding-test-expected.png: Ditto.
  • fast/frames/frame-src-attribute-expected.checksum: Ditto.
  • fast/frames/frame-src-attribute-expected.png: Ditto.
  • fast/frames/onlyCommentInIFrame-expected.png: Ditto.
  • fast/frames/viewsource-attribute-expected.checksum: Ditto.
  • fast/frames/viewsource-attribute-expected.png: Ditto.
  • fast/loader/start-load-in-unload-expected.checksum: Ditto.
  • fast/loader/start-load-in-unload-expected.png: Ditto.

WebCore:

Reviewed by Hyatt.

  • eliminated use of DeprecatedString for list item markers
  • eliminated use of DeprecatedValueList for border style collapsing
  • made many members private instead of protected or public
  • reworked counter implementation to fix most of the CSS 2.1 counter tests;

made CounterNode be a simple non-polymorphic class, moved most counter-
specific code out of RenderObject into RenderCounter, changed the data
structure in RenderStyle to be more speed-efficient but less space-
efficient for nodes with counter styles

Tests: css2.1

  • fixed a bug where counter text did not have text transform or text security applied to it

Test: fast/css/counters/counter-text-security.html
Test: fast/css/counters/counter-text-transform.html

  • improved handling of CSS content property values with data of the wrong type; this probably needs a bit more refinement

Test: fast/css-generated-content/reset-content-to-initial-expected.txt

  • fixed a bug where removing the value attribute from an HTMLLIElement would set the list item's value to 0 instead of restoring it to normal

Test: fast/lists/li-values.html

  • fixed a bug where changing the text security style from one style to another would not change the displayed text

Test: fast/css/text-security.html

  • fixed some problems handling long sequences of counter-related styles; still needs more work and some super-large test cases to check if recursive algorithms for these that will overflow stack remain
  • added support for list styles decimal-leading-zero, hiragana, hirigana-iroha, katakana, katakana-iroha, cjk-ideographic, armenian, and georgian

Test: fast/lists/decimal-leading-zero.html

  • minor tweaks and bug fixes for other list styles, including range checking
  • WebCore.exp: Updated for RenderListItem change.
  • bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject value]): Updated to use String instead of DeprecatedString.
  • css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Removed implementation for counter styles for now. We should probably restore it later, but we need to make sure the returned list is separate from the original list in the DOM -- modifying the list should not change the element it was computed from.
  • css/Counter.h: Removed unneeded empty constructor and destructor.
  • css/cssstyleselector.cpp: (WebCore::applyCounterList): Added. Stores counter directives in hash tables that should allow us to efficiently implement dynamic counter changes. Full support will have to wait for a future check-in. (WebCore::CSSStyleSelector::applyProperty): Changed counter properties to call applyCounterList. Reformatted the code to parse the content property for changes to RenderStyle and to handle the case where some the items in the content list don't generate any content.
  • editing/visible_units.cpp:
  • rendering/RenderBox.cpp:
  • rendering/RenderFlexibleBox.cpp:
  • rendering/RenderFlow.cpp:
  • rendering/RenderSlider.cpp: Added includes needed because of header changes.
  • html/HTMLLIElement.H: Removed unneeded m_isValued.
  • html/HTMLLIElement.cpp: (WebCore::HTMLLIElement::parseMappedAttribute): To match test results seen in WinIE, ignore values that are 0 or negative, and use new functions in RenderListItem to communicate the lack of a valid value. (WebCore::HTMLLIElement::attach): More of the same.
  • rendering/CounterNode.h: Made CounterNode be a non-polymorphic class, removing all the subclasses. Merged in CounterResetNode. Removed m_total from CounterResetNode, because it isn't needed for any of the styles (decimal-leading-zero always uses two digits). Removed m_hasSeparator and m_willNeedLayout since they aren't needed any more. Renamed m_count to m_countInParent for clarify, and named the list links the same as their associated functions. Removed many functions as well.
  • rendering/CounterNode.cpp: (WebCore::CounterNode::CounterNode): Added new fields. (WebCore::CounterNode::computeCountInParent): Added. Used by recount. (WebCore::CounterNode::recount): Simplified by removing unused parameter and the "get next" idiom. Changed to be iterative instead of recursive so we can handle arbitrarily long lists. (WebCore::CounterNode::insertAfter): Moved here from CounterResetNode. Updated for field name changes. Corrected rule for when to recount. (WebCore::CounterNode::removeChild): Moved here from CounterResetNode. Changed to only work on nodes without children. Corrected rule for when to recount. (WebCore::nextInPreOrderAfterChildren): Added. For debugging only. (WebCore::nextInPreOrder): Ditto. (WebCore::showTreeAndMark): Ditto. (showTree): Ditto.
  • rendering/CounterListItem.h:
  • rendering/CounterResetNode.h:
  • rendering/CounterResetNode.cpp: Marked ready to remove. I'll do the remove in a separate patch, since I have to update a lot of different make files when I do.
  • rendering/ListMarkerBox.cpp: (WebCore::ListMarkerBox::isText): Changed for the change to RenderListMarker.
  • rendering/RenderBlock.cpp: (WebCore::RenderBlock::addChildToFlow): Changed to use functions instead of direct field access so the fields can be private and we don't need to be friends. (WebCore::RenderBlock::getBaselineOfFirstLineBox): Ditto. (WebCore::RenderBlock::getBaselineOfLastLineBox): Ditto.
  • rendering/RenderBlock.h: (WebCore::RenderBlock::initMaxMarginValues): Ditto. (WebCore::RenderBlock::firstRootBox): Ditto. (WebCore::RenderBlock::lastRootBox): Ditto.
  • rendering/RenderBox.h: (WebCore::RenderBox::setWidth): Ditto. (WebCore::RenderBox::setHeight): Ditto.
  • rendering/RenderButton.cpp: (WebCore::RenderButton::addChild): Ditto.
  • rendering/bidi.cpp: (WebCore::RenderBlock::determineStartPosition): Ditto.
  • rendering/RenderContainer.h: Renamed m_first and m_last to m_firstChild and m_lastChild. Made them private instead of proected. Removed the setFirstChild and setLastChild functions.
  • rendering/RenderContainer.cpp: (WebCore::RenderContainer::RenderContainer): Updated for field name change. Changed all calls to get at fields directly instead of using functions. (WebCore::RenderContainer::destroyLeftoverChildren): Ditto. (WebCore::updateListMarkerNumbers): Updated for RenderListItem change. (WebCore::RenderContainer::addChild): Changed to get at fields directly instead of using functions. Also used release() since RenderText::setText now takes PassRefPtr. (WebCore::RenderContainer::removeChildNode): Changed to get at fields directly instead of using functions. (WebCore::RenderContainer::updatePseudoChildForObject): Create the anonymous box only if at least one of of the items in the content list actually generates content. Since a RenderCounter is a RenderText, don't bother making a new style for it -- it just shares the style with its parent. Changed code to use RenderImage::setCachedImage() instead of of setContentObject(). Added a call to setIsAnonymousImage() here, which was the only special thing that setContentObject() used to do. Pass a reference to the counter to the RenderCounter rather than a pointer. Pass document() as the node instead of passing the element to RenderCounter, which makes it anonymous automatically, and removed the setIsAnonymous call. (WebCore::RenderContainer::appendChildNode): Chagned to get at fields directly instead of using functions. (WebCore::RenderContainer::insertChildNode): Ditto. (WebCore::RenderContainer::layout): Ditto. (WebCore::RenderContainer::removeLeftoverAnonymousBoxes): Ditto. (WebCore::RenderContainer::positionForCoordinates): Ditto. (WebCore::RenderContainer::addLineBoxRects): Ditto.
  • rendering/RenderCounter.h: Removed unneeded layout override, never called on a text node. Added override of originalString. Replaced CounterData* with a copy of the CounterContent -- it's two atomic strings and an integer so it's efficient enough to store all three in the render object, and this eliminates the lifetime problems we could have if we used a pointer.
  • rendering/RenderCounter.cpp: Removed duplicate copy of list marker code. (WebCore::counterMaps): Moved these maps here from RenderObject. (WebCore::previousSiblingOrParent): Added. (WebCore::lastDescendant): Added. (WebCore::previousInPreOrder): Added. (WebCore::planCounter): Added. (WebCore::findPlaceForCounter): Added. (WebCore::counter): New name of function that was named RenderObject::findCounter. Also uses a new algorithm that passes all the CSS 2.1 tests. (WebCore::RenderCounter::RenderCounter): Changed to take a Document* instead of a Node*, since at the moment counters are always anonymous. (WebCore::RenderCounter::originalString): Added. This overrides the originalString in the RenderText base class so that any text transforms will use the counter's value. This code was previously in calcMinMaxWidth. (WebCore::RenderCounter::calcMinMaxWidth): Changed to call setInternalString and pass originalString -- this uses the counter's value from the counter tree. (WebCore::destroyCounterNodeChildren): Added. (WebCore::RenderCounter::destroyCounterNodes): Added. Called as needed from RenderObject::destroy for objects that have counter nodes.
  • rendering/RenderFlow.h: Made m_continuation private instead of protected.
  • rendering/RenderImage.h: Removed unneeded includes, and unnecessary element() function that casts to HTMLElement*. Made image() protected, and made the two calcAspectRatio functions private. Removed setContentObject(). Renamed the errorOccured() function to isErrorImage() and made it private.
  • rendering/RenderImage.cpp: (WebCore::RenderImage::RenderImage): Removed initialization of removed m_selectionState field. (WebCore::RenderImage::setCachedImage): Rearrange code so it won't try to call isErrorImage() on a null image. (WebCore::RenderImage::paint): Updated for name change.
  • rendering/RenderListBox.h: Removed unneeded forward declarations.
  • rendering/RenderListItem.h: Renamed markerStringValue() to markerText() and made it return a String instead of a DeprecatedString. Renamed m_prededfVal to m_explicitValue. Added booleans named m_hasExplicitValue and m_isValueUpToDate and marked m_value mutable so it can be computed in const member functions. (WebCore::RenderListItem::value): Changed to update value on demand at the time you ask for it. (WebCore::RenderListItem::hasExplicitValue): Added. Use instead of magic -1 value to indicate that the item does or does not have an explicit value. (WebCore::RenderListItem::explicitValue): Added. (WebCore::RenderListItem::setExplicitValue): Added. (WebCore::RenderListItem::clearExplicitValue): Added.
  • rendering/RenderListItem.cpp: (WebCore::RenderListItem::RenderListItem): Updated to not use magic -1 values. (WebCore::RenderListItem::setStyle): Removed call to RenderListMarker::setListItem since it's not needed any more, and instead pass the list item to the constructor. (WebCore::previousListItem): Made parameter const. (WebCore::RenderListItem::calcValue): Restructed the function a bit. (WebCore::RenderListItem::updateValueNow): Added. Calls calcValue. (WebCore::RenderListItem::updateValue): Added. New name for resetValue(). Unlike the old version, this no longer calculates the value until it's asked-for later. (WebCore::RenderListItem::markerText): Changed to return String rather than a DeprecatedString and to return a null string rather than empty string when there is no marker.
  • rendering/RenderListMarker.h: Added listMarkerText function -- common code shared with anyone who needs to convert a value into text given a list style. Changed constructor to take a RenderListItem and figure out the document from that. Added isImage() and isText() functions and removed listImage() function. Changed the type of the text() function from DeprecatedString to String. Removed the listItem() and seListeItem() functions. Made the getRelativeMarkerRect() function private. Renamed m_item to m_text and chagned it from DeprecatedString to String. Renamed m_listImage to m_image.
  • rendering/RenderListMarker.cpp: (WebCore::toRoman): Added range checking to fix buffer overrun for large or negative numbers. Rewrote to use a local UChar array and String rather than prepending to a DeprecatedString. (WebCore::toAlphabetic): Replaces toLetterString, and is more flexible since it takes an alphabet array. Changed to match CSS 3 specification by using decimal numbering for 0 and negative numbers. Rewrote to use a local UChar array and String rather than prepending to a DeprecatedString. (WebCore::toHebrewUnder1000): Added. Helper function for Hebrew numbers so we can handle numbers up to a million. (WebCore::toHebrew): Changed to use toHebrewUnder1000, added a special case for zero, negative, and too-large numbers. (WebCore::toArmenianUnder10000): Added. Used by toArmenian. (WebCore::toArmenian): Added. (WebCore::toGeorgian): Added. (WebCore::toCJKIdeographic): Added. (WebCore::listMarkerText): Added. Moved the code here from calcMinMaxWidth, but added support for text for the styles disc, circle, square, decimal-leading-zero, hiragana, hirigana-iroha, katakana, katakana-iroha, cjk-ideographic, armenian, and georgian. Also changed some of the styles to share the new toAlphabetic function. (WebCore::RenderListMarker::RenderListMarker): Updated for name changes and list item parameter. (WebCore::RenderListMarker::~RenderListMarker): Updated for name changes. (WebCore::RenderListMarker::setStyle): Updated for name changes. (WebCore::RenderListMarker::isImage): Added. Useful helper that unifies the check for no image and the error image. (WebCore::RenderListMarker::paint): Updated for name changes to to use isImage() and rearranged the code a bit. (WebCore::RenderListMarker::imageChanged): Updated for name change (WebCore::RenderListMarker::calcMinMaxWidth): Updated for name change, fixed a bug where we'd leave the old text around if we were using an image-based marker. Also changed the code to use isImage() instead of checking m_listImage. (WebCore::RenderListMarker::calcWidth): Changed to use isImage(). (WebCore::RenderListMarker::lineHeight): Changed to use isImage(). (WebCore::RenderListMarker::baselinePosition): Changed to use isImage(). (WebCore::RenderListMarker::getRelativeMarkerRect): Changed to use isImage(), restructured the code a little.
  • rendering/RenderObject.h: Removed now-uneeded includes. Removed collectBorders() and isFormElement(). Made remove() function and m_hasCounterNodeMap public so we could remove friend declarations for RenderListItem and RenderView. Moved findCounter() to become a private function inside RenderCounter.cpp.
  • rendering/RenderObject.cpp: (WebCore::RenderObject::createObject): Fix bug where a contentData() with CONTENT_NONE is treated as image content -- only look at the content property if it has exactly one entry which is a CONTENT_OBJECT. (WebCore::RenderObject::selectionStartEnd): Add const. (WebCore::RenderObject::destroy): Moved counter-specific code to RenderCounter::destroyCounterNodes. (WebCore::RenderObject::recalcMinMaxWidths): Changed code to set m_recalcMinMax near the top of the function -- the old code would potentially reset it after it was set by the calcMinMaxWidths functions, and possibly skip a future needed recalc. That came up in counter test cases. Removed unneeded boolean check right after an assertion.
  • rendering/RenderPart.h: Marked two virtual functions virtual for clarity.
  • rendering/RenderReplaced.h: Made shouldPaint be protected, and made m_intrinsicWidth, m_intrinsicHeight, and m_selectionState be private. Also marked isSelected() const.
  • rendering/RenderReplaced.cpp: Added newly-needed include. (WebCore::RenderReplaced::RenderReplaced): Use constructor syntax. (WebCore::RenderReplaced::isSelected): Made const and changed to call the selectionStartEnd function in the straightforward way.
  • rendering/RenderSVGText.cpp: (WebCore::RenderSVGText::absoluteRects): Use functions instead of direct field access so the fields can be private. (WebCore::RenderSVGText::relativeBBox): Ditto.
  • rendering/RenderStyle.h: Tweaked formatting. Changed names of CSS3 holders to say "rare" instead, since it's not all CSS 3. Renamed CounterData to CounterContent, since it's used inside ContentData. Changed names of fields in ContentData to have m prefix. Moved content and counter fields into the rare non-inherited data object. Removed unneeded assignment operator from a class that already inherits from Shared which makes it start out noncopyable.
  • rendering/RenderStyle.cpp: Name changes, plus: (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): Updated for added fields (content, counter-reset, counter-increment). (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData): Ditto. (WebCore::StyleRareNonInheritedData::operator==): Reformatted and sorted so it's easy to see if any fields are missing. (WebCore::operator!=): Added. Compares two CounterContent objects. (WebCore::RenderStyle::arenaDelete): Removed code to handle content, which is now in the rareNonInheritedData structure. (WebCore::RenderStyle::RenderStyle): Ditto. (WebCore::RenderStyle::inheritFrom): Ditto. (WebCore::RenderStyle::operator==): Ditto. (WebCore::RenderStyle::inheritedNotEqual): (WebCore::RenderStyle::diff): (WebCore::RenderStyle::contentDataEquivalent): Added case for counter, which previously would be ignored when determining if content is equivalent. (WebCore::RenderStyle::clearContent): Added. (WebCore::RenderStyle::setContent): Updated for change in content location. (WebCore::ContentData::clear): Changed algorithm so that it's not recursive and thus can handle a very long list of ContentData. (WebCore::operator==): Added. Compares two CounterDirective objects. (WebCore::RenderStyle::counterDirectives): Added. (WebCore::RenderStyle::accessCounterDirectives): Added.
  • rendering/RenderTable.h: Made m_currentBorder const to better reflect the paint algorithm.
  • rendering/RenderTable.cpp: (WebCore::RenderTable::paint): Changed to use Vector instead of DeprecatedValueList for the border styles, and to sort rather than inserting in sorted order as we go. Put the code to loop through the nodes and collect border styles here instead of in a RenderObject virtual function. Also set m_currentBorder to 0 after the loop for greater clarity.
  • rendering/RenderTableCell.h: Added a typedef for a vector of border values. Removed the virtual collectBorders and replaced with the non-virtual named collectBorderStyles. Also added a static member function named sortBorderStyles.
  • rendering/RenderTableCell.cpp: (WebCore::CollapsedBorders::CollapsedBorders): Removed unneeded constructor parameter. (WebCore::addBorderStyle): Changed to use a vector instead of a DeprecatedValueList. Wrote out a loop since Vector doesn't have a contains member function. Removed the code to insert the border at a sorted location; instead we have a separate call to sort the border styles (WebCore::RenderTableCell::collectBorderStyles): Renamed, and changed the parameter type. (WebCore::compareBorderStylesForQSort): Added. (WebCore::RenderTableCell::sortBorderStyles): Added.
  • rendering/RenderText.h: Changed StringImpl parameters in setText functions to be PassRefPtr; added a new setInternalString function. Made a bunch of the member functions private and made all the data members private instead of protected.
  • rendering/RenderText.cpp: (WebCore::RenderText::setStyle): Restructure a bit for clarity. Fix case where the old style has a different security than the new style. Use release() since RenderText::setText now takes PassRefPtr. Always call cacheWidths here. (WebCore::RenderText::setTextWithOffset): Changed to take the string as a PassRefPtr instead of a raw pointer. (WebCore::isInlineFlowOrEmptyText): Added. (WebCore::RenderText::setInternalString): Refactored core of setText into a separate protected member function that can be used RenderCounter. Changed the text security square character to match what's used in list markers. Changed the text transform switch statement so that gcc will warn us if we add a new value and don't add a case for it. (WebCore::RenderText::setText): Refactored most of the function into setInternalString. Removed the call to cacheWidths -- that's now done in the setStyle function only.
  • rendering/RenderView.h:
  • rendering/RenderView.cpp: (WebCore::RenderView::selectionStartEnd): Now const.
  • rendering/RenderWidget.cpp: Added newly-needed include. (WebCore::RenderWidget::setSelectionState): Don't bother setting m_selectionState here since RenderReplaced::setSelectionState already does that.

WebKit:

Reviewed by Hyatt.

  • Misc/WebNSAttributedStringExtras.m: (+[NSAttributedString _web_attributedStringFromRange:]): Updated to use new list marker text API that is String rather than DeprecatedString. Also removed code to do text form of non-text list markers since the list marker class now deals with that.
17:13 Changeset [18636] by andersca

Reviewed by Darin.

Fix build.


  • WebCoreSupport/WebFrameLoaderClient.h:
  • WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchCreatePage):
17:09 Changeset [22734] by andersca

WebCoreWin:

Reviewed by Adam.

Update temporary link stubs.


  • platform/win/TemporaryLinkStubs.cpp: (FrameLoader::referrer): (FrameLoader::overrideMediaType): (FrameLoader::checkLoadCompleteForThisFrame): (DocumentLoader::getResponseRefreshAndModifiedHeaders): (MainResourceLoader::create): (ResourceLoader::cancel): (ResourceLoader::load): (ResourceLoader::releaseResources): (ResourceLoader::addData):

WebKitWin:

Reviewed by Adam.

Add stubs for FrameLoaderClient methods.


  • WebFrame.cpp: (WebFrame::setMainDocumentError): (WebFrame::cancelledError): (WebFrame::cannotShowURLError): (WebFrame::interruptForPolicyChangeError): (WebFrame::cannotShowMIMETypeError): (WebFrame::fileDoesNotExistError): (WebFrame::committedLoad): (WebFrame::dispatchDecidePolicyForMIMEType): (WebFrame::dispatchDecidePolicyForNewWindowAction): (WebFrame::dispatchDecidePolicyForNavigationAction): (WebFrame::dispatchUnableToImplementPolicy): (WebFrame::download): (WebFrame::willUseArchive): (WebFrame::dispatchWillSendRequest): (WebFrame::dispatchDidReceiveResponse): (WebFrame::dispatchDidReceiveContentLength): (WebFrame::dispatchDidFinishLoading): (WebFrame::dispatchDidFailLoading): (WebFrame::dispatchDidLoadResourceFromMemoryCache): (WebFrame::dispatchDidFailProvisionalLoad): (WebFrame::dispatchDidFailLoad): (WebFrame::dispatchCreatePage): (WebFrame::incrementProgress): (WebFrame::completeProgress): (WebFrame::startDownload):
16:55 Changeset [18635] by andersca

Rubber stamped by Adam.


Move even more code to .cpp files.

  • WebCore.xcodeproj/project.pbxproj:
  • loader/FrameLoader.cpp: (WebCore::FrameLoader::createWindow): (WebCore::FrameLoader::load): (WebCore::FrameLoader::canLoad): (WebCore::FrameLoader::initialRequest): (WebCore::FrameLoader::receivedData): (WebCore::FrameLoader::setRequest): (WebCore::FrameLoader::setResponse): (WebCore::FrameLoader::willUseArchive): (WebCore::FrameLoader::handleUnimplementablePolicy): (WebCore::FrameLoader::cannotShowMIMEType): (WebCore::FrameLoader::interruptionForPolicyChangeError): (WebCore::FrameLoader::checkNavigationPolicy): (WebCore::FrameLoader::checkContentPolicy): (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL): (WebCore::FrameLoader::reloadAllowingStaleData): (WebCore::FrameLoader::reload): (WebCore::FrameLoader::finishedLoading): (WebCore::FrameLoader::continueAfterWillSubmitForm): (WebCore::FrameLoader::submitForm): (WebCore::FrameLoader::post): (WebCore::FrameLoader::isReloading): (WebCore::FrameLoader::loadEmptyDocumentSynchronously): (WebCore::FrameLoader::loadResourceSynchronously): (WebCore::FrameLoader::startLoadingMainResource): (WebCore::FrameLoader::startLoading): (WebCore::FrameLoader::cancelMainResourceLoad): (WebCore::FrameLoader::identifierForInitialRequest): (WebCore::FrameLoader::willSendRequest): (WebCore::FrameLoader::didReceiveResponse): (WebCore::FrameLoader::didReceiveData): (WebCore::FrameLoader::didFailToLoad): (WebCore::FrameLoader::originalRequest): (WebCore::FrameLoader::receivedMainResourceError): (WebCore::FrameLoader::callContinueFragmentScrollAfterNavigationPolicy): (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy): (WebCore::FrameLoader::opened): (WebCore::FrameLoader::dataURLBaseFromRequest): (WebCore::FrameLoader::checkNewWindowPolicy): (WebCore::FrameLoader::continueAfterNewWindowPolicy): (WebCore::FrameLoader::continueAfterNavigationPolicy): (WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy): (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): (WebCore::FrameLoader::callContinueLoadAfterNewWindowPolicy): (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy): (WebCore::FrameLoader::sendRemainingDelegateMessages): (WebCore::FrameLoader::requestFromDelegate): (WebCore::FrameLoader::loadedResourceFromMemoryCache): (WebCore::FrameLoader::applyUserAgent): (WebCore::PolicyCheck::PolicyCheck): (WebCore::PolicyCheck::clear): (WebCore::PolicyCheck::set): (WebCore::PolicyCheck::call): (WebCore::PolicyCheck::clearRequest):
  • loader/FrameLoader.h:
  • loader/FrameLoaderClient.h:
  • loader/MainResourceLoader.h:
  • loader/ResourceLoader.h: (WebCore::ResourceLoader::setIdentifier): (WebCore::ResourceLoader::identifier):
  • loader/mac/FrameLoaderMac.mm: (WebCore::FrameLoader::checkLoadCompleteForThisFrame): (WebCore::FrameLoader::referrer): (WebCore::FrameLoader::didReceiveAuthenticationChallenge): (WebCore::FrameLoader::didCancelAuthenticationChallenge): (WebCore::FrameLoader::didChangeTitle):
  • platform/graphics/svg/SVGImageEmptyClients.h: (WebCore::SVGEmptyFrameLoaderClient::dispatchCreatePage):
16:21 Changeset [22733] by aliceli1

WebKitWin:

Reviewed by Lou.

Fixed <rdar://problem/4853400> disable commands in the Edit menu when they're not applicable
and <rdar://problem/4769487> Some editing operations should be disabled in View Source window

  • Interfaces/IWebView.idl:
  • WebView.cpp: (WebView::hasSelectedRange): (WebView::cutEnabled): (WebView::copyEnabled): (WebView::pasteEnabled): (WebView::deleteEnabled): (WebView::editingEnabled):
  • WebView.h:
15:03 Changeset [18634] by adele

LayoutTests:

Reviewed by Hyatt.

  • fast/repaint/table-section-overflow-expected.checksum: Added.
  • fast/repaint/table-section-overflow-expected.png: Added.
  • fast/repaint/table-section-overflow-expected.txt: Added.
  • fast/repaint/table-section-overflow.html: Added.
  • fast/repaint/table-section-repaint-expected.checksum: Added.
  • fast/repaint/table-section-repaint-expected.png: Added.
  • fast/repaint/table-section-repaint-expected.txt: Added.
  • fast/repaint/table-section-repaint.html: Added.
  • tables/mozilla/core/misc-expected.txt:
  • tables/mozilla/core/misc-expected.png:
  • tables/mozilla/core/misc-expected.checksum:

WebCore:

Reviewed by Hyatt.

Tests: fast/repaint/table-section-repaint.html

fast/repaint/table-section-overflow.html

Fixed repainting when table sections move during layout.

Made table cells' overflows propagate to table sections and gave tables
overflows.

  • rendering/RenderTable.cpp: (WebCore::RenderTable::layout): Added computation of horizontal and vertical overflows based on the caption's and the table sections' overflows. Added checks for table sections that change position during layout. When that happens, we assume all sections below the first section that moved also moved, and repaint everything downwards from there. Added calls to repaintDuringLayoutIfMoved() for the caption. Changed the way table sections are iterated over and added a FIXME to change it again once bug 12124 is fixed. (WebCore::RenderTable::paint): Changed to paint overflow. (WebCore::RenderTable::outerBorderBottom):
  • rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::RenderTableSection): (WebCore::RenderTableSection::layoutRows): Added code to compute the section's overflow and a flag saying whether any cells in this section overflow. (WebCore::RenderTableSection::paint): Changed to paint overflow. If any cell in the section has overflow, then all cells are given a chance to paint. This is needed because there can be internal overflow, and external overflow can be coming from any cell inside.
  • rendering/RenderTableSection.h: (WebCore::RenderTableSection::overflowWidth): (WebCore::RenderTableSection::overflowLeft):
14:48 Changeset [18633] by bdakin

Reviewed by Adam.

Fix for <rdar://problem/4863434> Wrong contextual menu appears for
textarea and input elements at http://www.apple.com/feedback/
ical.html

No test cases added since context menus are not in DRT.

  • page/ContextMenuController.cpp: (WebCore::ContextMenuController::handleContextMenuEvent): Call EventHandler's hitTestResultAtPoint() instead of just hit testing the layer.
14:37 Changeset [22732] by andersca

WebCoreWin:

Fix build.


  • platform/win/TemporaryLinkStubs.cpp: (ResourceLoader::cancel): (FrameLoader::didChangeTitle): (DocumentLoader::unreachableURL):

WebKitWin:

Reviewed by Adam.

Add stubs for new FrameLoaderClient methods.


  • WebFrame.cpp: (WebFrame::createDocumentLoader): (WebFrame::setMainDocumentError): (WebFrame::cancelledError): (WebFrame::cannotShowURLError): (WebFrame::interruptForPolicyChangeError): (WebFrame::cannotShowMIMETypeError): (WebFrame::fileDoesNotExistError): (WebFrame::shouldFallBack): (WebFrame::committedLoad):
  • WebFrame.h:
14:27 Changeset [18632] by andersca

independEnt

14:26 Changeset [18631] by andersca

Rubber-stamped by Adam.


Move a bunch of platform independant code over to DocumentLoader.cpp

  • WebCore.xcodeproj/project.pbxproj:
  • loader/DocumentLoader.cpp: (WebCore::canonicalizedTitle): (WebCore::DocumentLoader::DocumentLoader): (WebCore::DocumentLoader::frameLoader): (WebCore::DocumentLoader::~DocumentLoader): (WebCore::DocumentLoader::setMainResourceData): (WebCore::DocumentLoader::mainResourceData): (WebCore::DocumentLoader::originalRequest): (WebCore::DocumentLoader::originalRequestCopy): (WebCore::DocumentLoader::request): (WebCore::DocumentLoader::initialRequest): (WebCore::DocumentLoader::actualRequest): (WebCore::DocumentLoader::URL): (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll): (WebCore::DocumentLoader::setRequest): (WebCore::DocumentLoader::setMainDocumentError): (WebCore::DocumentLoader::clearErrors): (WebCore::DocumentLoader::mainReceivedError): (WebCore::DocumentLoader::stopLoading): (WebCore::DocumentLoader::setupForReplace): (WebCore::DocumentLoader::commitIfReady): (WebCore::DocumentLoader::finishedLoading): (WebCore::DocumentLoader::setCommitted): (WebCore::DocumentLoader::isCommitted): (WebCore::DocumentLoader::setLoading): (WebCore::DocumentLoader::isLoading): (WebCore::DocumentLoader::commitLoad): (WebCore::DocumentLoader::doesProgressiveLoad): (WebCore::DocumentLoader::receivedData): (WebCore::DocumentLoader::setupForReplaceByMIMEType): (WebCore::DocumentLoader::updateLoading): (WebCore::DocumentLoader::setFrame): (WebCore::DocumentLoader::attachToFrame): (WebCore::DocumentLoader::detachFromFrame): (WebCore::DocumentLoader::prepareForLoadStart): (WebCore::DocumentLoader::setIsClientRedirect): (WebCore::DocumentLoader::isClientRedirect): (WebCore::DocumentLoader::setPrimaryLoadComplete): (WebCore::DocumentLoader::isLoadingInAPISense): (WebCore::DocumentLoader::addResponse): (WebCore::DocumentLoader::stopRecordingResponses): (WebCore::DocumentLoader::title): (WebCore::DocumentLoader::setLastCheckedRequest): (WebCore::DocumentLoader::lastCheckedRequest): (WebCore::DocumentLoader::triggeringAction): (WebCore::DocumentLoader::setTriggeringAction): (WebCore::DocumentLoader::responses): (WebCore::DocumentLoader::setOverrideEncoding): (WebCore::DocumentLoader::overrideEncoding): (WebCore::DocumentLoader::setTitle): (WebCore::DocumentLoader::urlForHistory):
  • loader/DocumentLoader.h:
  • loader/FrameLoader.cpp: (WebCore::FrameLoader::load): (WebCore::FrameLoader::committedLoad): (WebCore::FrameLoader::setMainDocumentError): (WebCore::FrameLoader::mainReceivedCompleteError): (WebCore::FrameLoader::mainReceivedError): (WebCore::FrameLoader::cancelledError): (WebCore::FrameLoader::fileDoesNotExistError): (WebCore::FrameLoader::mainResourceData):
  • loader/FrameLoader.h:
  • loader/FrameLoaderClient.h:
  • loader/mac/DocumentLoaderMac.mm: (WebCore::DocumentLoader::unreachableURL):
  • loader/mac/FrameLoaderMac.mm:
14:18 Changeset [18630] by spadma

2006-12-20 sareen <shyam.sareen@nokia.com>

Reviewed by yongjun.zhang@nokia.com.
DESC: Change SDK exported files path MACRO for S60 builds.
http://bugs.webkit.org/show_bug.cgi?id=11895

  • group/bld.inf:
14:16 Changeset [18629] by spadma

2007-01-05 raalexan <rasvan.alexandrescu@nokia.com>

Reviewed by Sachin Padma.
DESC: xhtml link not opened 2nd time (TSW error id : MSZR-6TGH7D)
http://bugs.webkit.org/show_bug.cgi?id=12130

  • ResourceLoader/CacheSrc/HttpCacheUtil.cpp: (HttpCacheUtil::MergeHeadersLC):
14:13 Changeset [18628] by spadma

2007-01-05 raalexan <rasvan.alexandrescu@nokia.com>

Reviewed by Sachin Padma.
DESC: xhtml link not opened 2nd time (TSW error id : MSZR-6TGH7D)
http://bugs.webkit.org/show_bug.cgi?id=12130

  • ResourceLoader/CacheSrc/HttpCacheUtil.cpp: (HttpCacheUtil::MergeHeadersLC):
13:18 Changeset [18627] by beidson

Fixed Eric's name

13:14 Changeset [18626] by beidson

Reviewed by Eric Siedel

http://bugs.webkit.org/show_bug.cgi?id=12117
Fixes null deref when opening links from a gmail account

  • loader/FrameLoader.cpp: (WebCore::FrameLoader::updateHistoryForStandardLoad): Null check m_currentHistoryItem (WebCore::FrameLoader::updateHistoryForClientRedirect): Ditto
13:08 Changeset [22731] by andersca

Fix the build.


  • WebCore.vcproj/WebCore.vcproj:
  • platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::ResourceHandle::bufferedData): (WebCore::ResourceHandle::supportsBufferedData):
  • platform/win/TemporaryLinkStubs.cpp: (WebCore::CheckCacheObjectStatus):
13:00 Changeset [18625] by andersca

Move some now cross platform functions over to ResourceLoader.cpp in an attempt to fix the non Mac builds.


  • loader/CachedResource.h: (WebCore::CachedResource::setAllData):
  • loader/ResourceLoader.cpp: (WebCore::ResourceLoader::resourceData):
  • loader/ResourceLoader.h:
  • loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::didFinishLoading):
  • loader/mac/LoaderFunctionsMac.mm:
  • loader/mac/ResourceLoaderMac.mm:
  • platform/SharedBuffer.cpp: (WebCore::SharedBuffer::platformDataSize):
  • platform/network/ResourceHandle.h:
12:57 Changeset [18624] by hyatt

Land updated results for float tests.

12:56 Changeset [18623] by hyatt

Back out fix for 12114. I missed rule #5 in the float positioning part of the CSS2.1 spec. Keep all
the code cleanup though.

Reviewed by mitz

  • rendering/RenderBlock.cpp: (WebCore::RenderBlock::positionNewFloats):
12:54 Changeset [18622] by spadma

2007-01-05 sareen <shyam.sareen@nokia.com>

Reviewed by Sachin Padma.
DESC: BrowserNG does not open hyperlinks with a space in the anchor.
http://bugzilla.opendarwin.org/show_bug.cgi?id=12127

  • ResourceLoader/src/FileTransaction.cpp: (CFileTransaction::ParseFileNameLC):
11:33 Changeset [18621] by andersca

WebCore:

Reviewed by Maciej.

Add a shared buffer class which is backed by either a vector or an NSData object. This object can also
be held in a custom NSData subclass. Use this in the loader wherever NSData was used.


  • WebCore.exp:
  • WebCore.xcodeproj/project.pbxproj:
  • loader/CachedResource.h: (WebCore::CachedResource::allData):
  • loader/DocumentLoader.h:
  • loader/FrameLoader.h:
  • loader/ResourceLoader.h:
  • loader/SubresourceLoaderClient.h: (WebCore::SubresourceLoaderClient::didFail):
  • loader/loader.cpp: (WebCore::Loader::didFinishLoading):
  • loader/loader.h:
  • loader/mac/DocumentLoaderMac.mm: (WebCore::DocumentLoader::setMainResourceData): (WebCore::DocumentLoader::mainResourceData): (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  • loader/mac/FrameLoaderMac.mm: (WebCore::FrameLoader::mainResourceData):
  • loader/mac/ImageDocumentMac.mm: (WebCore::finishImageLoad):
  • loader/mac/LoaderFunctionsMac.mm: (WebCore::CheckCacheObjectStatus): (WebCore::CachedResource::setAllData):
  • loader/mac/NetscapePlugInStreamLoaderMac.mm: (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
  • loader/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::addData): (WebCore::ResourceLoader::resourceData): (WebCore::ResourceLoader::clearResourceData): (WebCore::ResourceLoader::didReceiveData): (WebCore::ResourceLoader::willStopBufferingData):
  • loader/mac/SubresourceLoaderMac.mm: (WebCore::SubresourceLoader::didReceiveResponse): (WebCore::SubresourceLoader::didFinishLoading):
  • page/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge getData:andResponse:forURL:]): (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
  • platform/KURL.h:
  • platform/SharedBuffer.cpp: Added. (WebCore::SharedBuffer::SharedBuffer): (WebCore::SharedBuffer::size): (WebCore::SharedBuffer::data): (WebCore::SharedBuffer::append): (WebCore::SharedBuffer::clear): (WebCore::SharedBuffer::clearPlatformData): (WebCore::SharedBuffer::maybeTransferPlatformData): (WebCore::SharedBuffer::hasPlatformData): (WebCore::SharedBuffer::platformData):
  • platform/SharedBuffer.h: Added.
  • platform/mac/SharedBufferMac.mm: Added. (-[SharedBufferData dealloc]): (-[SharedBufferData finalize]): (-[SharedBufferData initWithSharedBuffer:WebCore::]): (-[SharedBufferData length]): (-[SharedBufferData bytes]): (WebCore::SharedBuffer::wrapNSData): (WebCore::SharedBuffer::SharedBuffer): (WebCore::SharedBuffer::createNSData): (WebCore::SharedBuffer::hasPlatformData): (WebCore::SharedBuffer::platformData): (WebCore::SharedBuffer::platformDataSize): (WebCore::SharedBuffer::maybeTransferPlatformData): (WebCore::SharedBuffer::clearPlatformData):
  • platform/network/ResourceHandle.h:
  • platform/network/ResourceHandleClient.h:
  • platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::bufferedData):

WebKit:

Reviewed by Maciej.

The data returned is now a SharedBuffer so wrap it in an NSData object.


  • WebView/WebDataSource.mm: (-[WebDataSource data]):
11:26 Changeset [18620] by ap

Reviewed by Darin.

Test for http://bugs.webkit.org/show_bug.cgi?id=3420
XMLHttpRequest does not handle set-cookie headers

  • http/tests/xmlhttprequest/resources/get-set-cookie.cgi: Set the cookies unconditionally (previously, the test failed if there were other cookies for 127.0.0.1:8000.
11:02 Changeset [18619] by andersca

Reviewed by Adam.

http://bugs.webkit.org/show_bug.cgi?id=12120
REGRESSION(r18605): Safari snippet editor no longer works


  • loader/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::willSendRequest): Put back the code change in r18607.


  • platform/mac/KURLMac.mm: (WebCore::KURL::KURL): Convert nil NSURLs to null KURLs.
08:15 Changeset [18618] by ap

Reviewed by Geoff.

http://bugs.webkit.org/show_bug.cgi?id=7296
Disable JavaScript exceptions when dynamically changing CSS properties.

  • bindings/js/kjs_css.cpp: (KJS::DOMCSSStyleDeclaration::put): Removed the Dashboard quirk logic.
  • css/CSSMutableStyleDeclaration.cpp: (WebCore::CSSMutableStyleDeclaration::setProperty): Don't raise an exception if parsing fails.
05:24 Changeset [18617] by zack

be smarter when detecting the display (hopefully fixes
running the layout tests with the buildbot)

01:00 Changeset [18616] by antti

LayoutTests:

Reviewed by hyatt.


Test for http://bugs.webkit.org/show_bug.cgi?id=12109
layer visibility incorrect in some cases

  • fast/layers/layer-visibility-sublayer-expected.checksum: Added.
  • fast/layers/layer-visibility-sublayer-expected.png: Added.
  • fast/layers/layer-visibility-sublayer-expected.txt: Added.
  • fast/layers/layer-visibility-sublayer.html: Added.

WebCore:

Reviewed by hyatt.


http://bugs.webkit.org/show_bug.cgi?id=12109


Fix layer visibility in some cases with nested layers.

  • rendering/RenderLayer.cpp: (WebCore::RenderLayer::updateVisibilityStatus):
00:43 Changeset [18615] by lars

the daily checkin to get the Qt build compiling again :)

01/04/07:

23:44 Changeset [18614] by aroben

WebCore:

Reviewed by Geoff, cheered by others.

Dead code elimination.

All layout tests pass.

  • page/EventHandler.h:
  • page/mac/EventHandlerMac.mm:
  • page/mac/WebCoreFrameBridge.h:
  • page/mac/WebCoreFrameBridge.mm:

WebKit:

Reviewed by Geoff, cheered by others.

Dead code elimination.

  • WebView/WebHTMLView.m:
23:26 Changeset [18613] by aroben

Boo on me for undoing Beth's hard work.

  • WebView/WebHTMLView.m: (-[WebHTMLView menuForEvent:]): Undo a mistaken roll out of r18597.
23:21 Changeset [18612] by ddkilzer

WebKit:

Reviewed by Brady.

  • DefaultDelegates/WebDefaultPolicyDelegate.m: Initialize isDirectory.
22:36 Changeset [18611] by ddkilzer

WebKitTools:

Reviewed by Mark Rowe.

Speed up svn-create-patch for copied and moved files.

  • Scripts/svn-create-patch: (manufacturePatchForAdditionWithHistory($$)): Use 'svn cat' instead of 'svn cat -rNNNNN' so svn pulls original from local disk.
22:28 Changeset [22730] by aroben

WebKitWin:

Reviewed by Geoff.

Fix: <rdar://4763580> Support tabbing between subframes
Fix: <rdar://4763595> Support tabbing out of the document back into the
Safari UI

  • Interfaces/IWebUIDelegate.idl: Added declarations of new methods.
  • WebBackForwardList.cpp: (WebBackForwardList::backItem): Changed to return E_FAIL if returning a null pointer. (WebBackForwardList::currentItem): Ditto. (WebBackForwardList::forwardItem): Ditto.
  • WebChromeClient.cpp: (WebChromeClient::canTakeFocus): Added new click method. (WebChromeClient::takeFocus): Ditto. (WebChromeClient::focus): Removed unnecessary null check. (WebChromeClient::unfocus): Ditto. (WebChromeClient::createWindow): Ditto. (WebChromeClient::createModalDialog): Ditto. (WebChromeClient::show): Ditto. (WebChromeClient::canRunModal): Ditto. (WebChromeClient::runModal): Ditto. (WebChromeClient::setToolbarsVisible): Ditto. (WebChromeClient::toolbarsVisible): Ditto. (WebChromeClient::setStatusbarVisible): Ditto. (WebChromeClient::statusbarVisible): Ditto. (WebChromeClient::setMenubarVisible): Ditto. (WebChromeClient::menubarVisible): Ditto. (WebChromeClient::setResizable): Ditto. (WebChromeClient::addMessageToConsole): Ditto.
  • WebChromeClient.h: Added declarations.
22:18 Changeset [18610] by aroben

LayoutTests:

Reviewed by Geoff.

Added new tests for tabindex and tabbing into/out of subframes.

  • fast/dom/tabindex-clamp-expected.txt: Added.
  • fast/dom/tabindex-clamp.html: Added.
  • fast/events/frame-click-focus-expected.txt: Added.
  • fast/events/frame-click-focus.html: Added.
  • fast/events/frame-tab-focus-expected.txt: Added.
  • fast/events/frame-tab-focus.html: Added.
  • fast/events/resources/frame-tab-focus-child.html: Added.
  • fast/events/resources/frame-tab-focus-empty-child.html: Added.
  • fast/events/resources/frame-tab-focus-empty-middle.html: Added.
  • fast/events/resources/frame-tab-focus-middle.html: Added.
  • fast/events/resources/frame-tab-focus-upper.html: Added.
  • fast/html/tab-order-expected.txt: Added.
  • fast/html/tab-order.html: Added.

Updated test to match new behavior.

  • fast/forms/focus2-expected.txt: Updated results.
  • fast/forms/focus2.html: Fixed typo, and reduced the number of tab events dispatched now that frames containing focusable elements aren't themselves in the tab order.

WebCore:

Reviewed by Geoff.

Fix: <rdar://4800335> REGRESSION: shift-tabbing from location field
goes to first field rather than last (businessweek.com)

Fix: <rdar://4800373> REGRESSION: tabbing from last control focuses
nothing visible (busniessweek.com)

Handle tabbing into/out of subframes in WebCore instead of letting
AppKit do the dirty work. This change also fixes a number of bugs and
changes some behavior to match other browsers:

  • No frames receive a focus event when the page is first loaded.
  • When a frame is clicked or focused with the keyboard, it receives a focus event and all other frames receive a blur event.
  • tabindex values are clamped to the range of a signed short, rather than overflowing within an unsigned short.
  • tabindex is respected on frame owner elements, even though HTML4 says it shouldn't be.
  • Subframes will be focused when tabbing if they don't contain any focusable elements within them (it would be nice to only focus the frame if it has scrollbars).

Renamed SelectionDirection to FocusDirection and put it in its own file.

  • page/FocusDirection.h: Added. (WebCore::):
  • page/mac/WebCoreFrameBridge.mm: Updated for renames. (-[WebCoreFrameBridge nextKeyView]): (-[WebCoreFrameBridge previousKeyView]): (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]): (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):

Moved advanceFocus from EventHandler to FocusController and added
support for moving into/out of subframes..

  • page/EventHandler.cpp: Moved advanceFocus to FocusController.
  • page/EventHandler.h: Ditto.
  • page/FocusController.cpp: (WebCore::deepFocusableNode): Static helper function to find focusable nodes nested within frames. (WebCore::FocusController::advanceFocus): Moved from EventHandler and rewritten to handle subframes.
  • page/FocusController.h: Added advanceFocus declaration.
  • dom/EventTargetNode.cpp: (WebCore::EventTargetNode::defaultEventHandler): Updated for the move of advanceFocus to FocusController.
  • html/HTMLFrameOwnerElement.h: (WebCore::HTMLFrameOwnerElement::isFrameOwnerElement): New method. (WebCore::HTMLFrameOwnerElement::isKeyboardFocusable): New virtual implementation used to trick Document::nextFocusableNode so that we can focus frames.

Rewrote/renamed
Document::nextFocusableNode/Document::previousFocusableNode.

  • dom/Document.cpp: (WebCore::nextNodeWithExactTabIndex): New static helper function. (WebCore::previousNodeWithExactTabIndex): Ditto. (WebCore::nextNodeWithGreaterTabIndex): Ditto. (WebCore::previousNodeWithLowerTabIndex): Ditto. (WebCore::Document::nextFocusableNode): Renamed from nextFocusedNode, and rewritten with much simpler logic. (WebCore::Document::previousFocusableNode): Ditto.
  • dom/Document.h: Updated declarations for renames.
  • page/mac/EventHandlerMac.mm: Updated for rename of SelectionDirection to FocusDirection. (WebCore::EventHandler::nextKeyViewInFrame): Updated for renames. (WebCore::EventHandler::nextKeyViewInFrameHierarchy): Ditto. (WebCore::EventHandler::nextKeyView): Ditto. (WebCore::EventHandler::focusDocumentView): Added call to setFocusedFrame when focusing the document view. (WebCore::EventHandler::passMouseDownEventToWidget): Removed LOG_ERROR when a nil NSView is returned from AppKit, as this is a fairly common occurrence when a RenderWidget has a border. (WebCore::EventHandler::passWheelEventToWidget): Added a nil-check of the hit-tested NSView.

Changed storage of tabIndex to a signed short, and added clamping of
tabindex attribute values to match Firefox's behavior.

  • dom/Node.h: Use a signed short to store m_tabIndex. (WebCore::Node::isFrameOwnerElement): New method. (WebCore::Node::tabIndex): Updated for signedness. (WebCore::Node::setTabIndex): Ditto.
  • html/HTMLAnchorElement.cpp: Remove implementation of tabIndex() so that Node::tabIndex() will be called instead and return the clamped value (which matches Firefox's behavior).
  • html/HTMLAnchorElement.h: Ditto.
  • html/HTMLAreaElement.cpp: Ditto.
  • html/HTMLAreaElement.h: Ditto.
  • html/HTMLGenericFormElement.cpp: Ditto.
  • html/HTMLGenericFormElement.h: Ditto.
  • html/HTMLObjectElement.cpp: Ditto.
  • html/HTMLObjectElement.h: Ditto.
  • html/HTMLElement.cpp: (WebCore::HTMLElement::parseMappedAttribute): Clamp tabIndex to the range of a signed short to match Firefox.

Added two new Chrome methods for transferring focus out of the
WebView.

  • page/Chrome.cpp: (WebCore::Chrome::canTakeFocus): (WebCore::Chrome::takeFocus):
  • page/Chrome.h:
  • page/ChromeClient.h:
  • platform/graphics/svg/SVGImageEmptyClients.h: Fixed typo "CromeClient" -> "ChromeClient". (WebCore::SVGEmptyChromeClient::~SVGEmptyChromeClient): (WebCore::SVGEmptyChromeClient::canTakeFocus): (WebCore::SVGEmptyChromeClient::takeFocus):
  • platform/graphics/svg/SVGImage.cpp: (WebCore::SVGImage::setData): Fixed typo.

Miscellaneous:

  • WebCore.exp: Updated/sorted symbols.
  • WebCore.xcodeproj/project.pbxproj: Made FocusController.h Private so WebKit can access it.

WebKit:

Reviewed by Geoff.

Remove WebKit/AppKit from handling tabbing between subframes.

  • WebCoreSupport/WebChromeClient.h: Added new ChromeClient methods for moving focus out of the WebView.
  • WebCoreSupport/WebChromeClient.mm: Ditto. (WebChromeClient::canTakeFocus): (WebChromeClient::takeFocus):
  • WebCoreSupport/WebFrameBridge.mm: (-[WebFrameBridge webView]): Added null-check of m_frame.
  • WebView/WebHTMLView.m: Removed -[WebHTMLView nextValidKeyView]. (-[WebHTMLView _updateActiveState]): Changed to focus the frame if WebCore believes it to be the focused frame. (-[WebHTMLView becomeFirstResponder]): Rewrote to call into FocusController to place focus correctly within the WebView.
21:58 Changeset [18609] by beidson

Reverted Anders' change to fix the world

  • loader/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::willSendRequest): (WebCore::ResourceLoader::didReceiveResponse):
21:56 Changeset [18608] by ddkilzer

WebCore:

Reviewed by Sam Weinig.

  • Coding style cleanup.
  • Canceled AutoTableLayout and FixedTableLayout being friend classes of RenderTable. Instead, added public accessors to RenderTable for what the table layout classes need and changed TableLayout::calcMinMaxWidth() to take references to the caller's min and max widths.
  • Made RenderTableSection's grid protected and moved code that accessed it from RenderTable into RenderTableSection.

No test possible (no change to functionality).

  • rendering/AutoTableLayout.cpp: (WebCore::AutoTableLayout::calcMinMaxWidth): (WebCore::AutoTableLayout::layout):
  • rendering/AutoTableLayout.h:
  • rendering/FixedTableLayout.cpp: (WebCore::FixedTableLayout::calcWidthArray): (WebCore::FixedTableLayout::calcMinMaxWidth): (WebCore::FixedTableLayout::layout):
  • rendering/FixedTableLayout.h:
  • rendering/RenderTable.cpp: (WebCore::RenderTable::RenderTable): (WebCore::RenderTable::~RenderTable): (WebCore::RenderTable::setStyle): (WebCore::RenderTable::addChild): (WebCore::RenderTable::calcWidth): (WebCore::RenderTable::layout): (WebCore::RenderTable::setCellWidths): (WebCore::RenderTable::paint): (WebCore::RenderTable::paintBoxDecorations): (WebCore::RenderTable::calcMinMaxWidth): (WebCore::RenderTable::splitColumn): Factored out the section work to RenderTableSection::splitColumn(). (WebCore::RenderTable::appendColumn): Factored out the section work to RenderTableSection::appendColumn(). (WebCore::RenderTable::colElement): (WebCore::RenderTable::recalcSections): (WebCore::RenderTable::removeChildNode): (WebCore::RenderTable::calcBorderLeft): (WebCore::RenderTable::calcBorderRight): (WebCore::RenderTable::outerBorderTop): (WebCore::RenderTable::outerBorderBottom): (WebCore::RenderTable::outerBorderLeft): (WebCore::RenderTable::outerBorderRight): (WebCore::RenderTable::sectionAbove): (WebCore::RenderTable::sectionBelow): (WebCore::RenderTable::cellAbove): (WebCore::RenderTable::cellBelow): (WebCore::RenderTable::cellBefore): (WebCore::RenderTable::getOverflowClipRect): (WebCore::RenderTable::dump):
  • rendering/RenderTable.h: (WebCore::RenderTable::getColumnPos): (WebCore::RenderTable::hBorderSpacing): (WebCore::RenderTable::vBorderSpacing): (WebCore::RenderTable::getRules): (WebCore::RenderTable::cellPadding): (WebCore::RenderTable::setCellPadding): (WebCore::RenderTable::ColumnStruct::ColumnStruct): (WebCore::RenderTable::columns): Added this accessor. (WebCore::RenderTable::columnPositions): Added this accessor. (WebCore::RenderTable::header): (WebCore::RenderTable::footer): (WebCore::RenderTable::firstBody): (WebCore::RenderTable::numEffCols): (WebCore::RenderTable::spanOfEffCol): (WebCore::RenderTable::colToEffCol): (WebCore::RenderTable::effColToCol): (WebCore::RenderTable::bordersPaddingAndSpacing): (WebCore::RenderTable::needsSectionRecalc): (WebCore::RenderTable::setNeedsSectionRecalc): Renamed setNeedSectionRecalc() to this. (WebCore::RenderTable::hasSections): (WebCore::RenderTable::recalcSectionsIfNeeded):
  • rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::RenderTableCell): (WebCore::RenderTableCell::destroy): (WebCore::RenderTableCell::updateFromElement): (WebCore::RenderTableCell::styleOrColWidth): (WebCore::RenderTableCell::computeAbsoluteRepaintRect): (WebCore::RenderTableCell::absolutePosition): (WebCore::RenderTableCell::baselinePosition): (WebCore::RenderTableCell::setStyle): (WebCore::compareBorders): (WebCore::RenderTableCell::collapsedTopBorder): (WebCore::RenderTableCell::paint): (WebCore::collapsedBorderStyle): (WebCore::CollapsedBorder::CollapsedBorder): (WebCore::CollapsedBorders::CollapsedBorders): (WebCore::CollapsedBorders::addBorder): (WebCore::CollapsedBorders::nextBorder): (WebCore::RenderTableCell::paintCollapsedBorder): (WebCore::RenderTableCell::paintBackgroundsBehindCell): (WebCore::RenderTableCell::paintBoxDecorations): (WebCore::RenderTableCell::dump):
  • rendering/RenderTableCell.h: (WebCore::RenderTableCell::colSpan): (WebCore::RenderTableCell::setColSpan): (WebCore::RenderTableCell::rowSpan): (WebCore::RenderTableCell::setRowSpan): (WebCore::RenderTableCell::col): (WebCore::RenderTableCell::setCol): (WebCore::RenderTableCell::row): (WebCore::RenderTableCell::setRow): (WebCore::RenderTableCell::section): (WebCore::RenderTableCell::table): (WebCore::RenderTableCell::yPos): (WebCore::RenderTableCell::setCellTopExtra): (WebCore::RenderTableCell::setCellBottomExtra): (WebCore::RenderTableCell::borderTopExtra): (WebCore::RenderTableCell::borderBottomExtra):
  • rendering/RenderTableRow.cpp: (WebCore::RenderTableRow::destroy): (WebCore::RenderTableRow::setStyle): (WebCore::RenderTableRow::addChild): (WebCore::RenderTableRow::layout): (WebCore::RenderTableRow::getAbsoluteRepaintRect): (WebCore::RenderTableRow::paint):
  • rendering/RenderTableRow.h: (WebCore::RenderTableRow::section): (WebCore::RenderTableRow::table): (WebCore::RenderTableRow::lineHeight):
  • rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::RenderTableSection): (WebCore::RenderTableSection::destroy): (WebCore::RenderTableSection::setStyle): (WebCore::RenderTableSection::addChild): (WebCore::RenderTableSection::ensureRows): (WebCore::RenderTableSection::addCell): (WebCore::RenderTableSection::setCellWidths): (WebCore::RenderTableSection::calcRowHeight): (WebCore::RenderTableSection::layoutRows): (WebCore::RenderTableSection::lowestPosition): (WebCore::RenderTableSection::rightmostPosition): (WebCore::RenderTableSection::leftmostPosition): (WebCore::RenderTableSection::calcOuterBorderTop): (WebCore::RenderTableSection::calcOuterBorderBottom): (WebCore::RenderTableSection::calcOuterBorderLeft): (WebCore::RenderTableSection::calcOuterBorderRight): (WebCore::RenderTableSection::paint): (WebCore::RenderTableSection::recalcCells): (WebCore::RenderTableSection::clearGrid): (WebCore::RenderTableSection::numColumns): (WebCore::RenderTableSection::appendColumn): Added. Moved code from RenderTable::appendColumn() into here. (WebCore::RenderTableSection::splitColumn): Added. Moved code from RenderTable::splitColumn() into here. (WebCore::RenderTableSection::removeChildNode): (WebCore::RenderTableSection::dump):
  • rendering/RenderTableSection.h: (WebCore::RenderTableSection::renderName): (WebCore::RenderTableSection::isTableSection): (WebCore::RenderTableSection::lineHeight): (WebCore::RenderTableSection::table): (WebCore::RenderTableSection::cellAt): (WebCore::RenderTableSection::numRows): (WebCore::RenderTableSection::recalcCellsIfNeeded): (WebCore::RenderTableSection::needsCellRecalc): (WebCore::RenderTableSection::setNeedsCellRecalc): (WebCore::RenderTableSection::getBaseline):
  • rendering/TableLayout.h:
21:14 Changeset [18607] by andersca

Reviewed by Adam.

http://bugs.webkit.org/show_bug.cgi?id=12120
REGRESSION(r18605): Safari snippet editor no longer works


  • loader/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::willSendRequest): Fix logic so applewebdata: URLs no longer cause the underlying URL to be fetched .
19:34 Changeset [18606] by andersca

Reviewed by Adam.

Move all remaining instances of NSURLRequest over to ResourceRequest (well, pretty much all).

  • loader/MainResourceLoader.h:
  • loader/ResourceLoader.h:
  • loader/SubresourceLoader.h:
  • loader/mac/FrameLoaderMac.mm: (WebCore::FrameLoader::startLoadingMainResource):
  • loader/mac/MainResourceLoaderMac.mm: (WebCore::MainResourceLoader::loadNow): (WebCore::MainResourceLoader::load): (WebCore::MainResourceLoader::setDefersLoading):
  • loader/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::load):
  • loader/mac/SubresourceLoaderMac.mm: (WebCore::SubresourceLoader::load): (WebCore::SubresourceLoader::create):
  • platform/graphics/svg/SVGImage.cpp: (WebCore::SVGImage::setData):
  • platform/network/mac/ResourceRequestMac.mm: (WebCore::ResourceRequest::doUpdatePlatformRequest):
18:46 Changeset [22729] by sfalken

Bump version for submit

18:40 Changeset [18605] by andersca

WebCore:

Reviewed by Brady.

Move more NSURLRequests over to ResourceRequests.


  • loader/DocumentLoader.h:
  • loader/FrameLoader.h:
  • loader/FrameLoaderClient.h:
  • loader/MainResourceLoader.h:
  • loader/ResourceLoader.h: (WebCore::ResourceLoader::request):
  • loader/SubresourceLoader.h:
  • loader/mac/FrameLoaderMac.mm: (WebCore::FrameLoader::willSendRequest): (WebCore::FrameLoader::opened): (WebCore::FrameLoader::requestFromDelegate): (WebCore::FrameLoader::loadedResourceFromMemoryCache): (WebCore::FrameLoader::loadResourceSynchronously):
  • loader/mac/MainResourceLoaderMac.mm: (WebCore::MainResourceLoader::willSendRequest): (WebCore::MainResourceLoader::continueAfterContentPolicy): (WebCore::MainResourceLoader::loadNow): (WebCore::MainResourceLoader::setDefersLoading):
  • loader/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::load): (WebCore::ResourceLoader::willSendRequest): (WebCore::ResourceLoader::didReceiveResponse): (WebCore::ResourceLoader::cancelledError):
  • loader/mac/SubresourceLoaderMac.mm: (WebCore::SubresourceLoader::willSendRequest):
  • platform/graphics/svg/SVGImageEmptyClients.h: (WebCore::SVGEmptyFrameLoaderClient::dispatchWillSendRequest): (WebCore::SVGEmptyFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
  • platform/network/ResourceRequest.cpp: (WebCore::ResourceRequest::isNull):
  • platform/network/ResourceRequest.h:

WebKit:

Reviewed by Brady.

FrameLoaderClient changed yet again.


  • WebCoreSupport/WebFrameLoaderClient.h:
  • WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache): (WebFrameLoaderClient::dispatchWillSendRequest):
18:38 Changeset [18604] by sfalken

New tag.

18:20 Changeset [18603] by beidson

Reviewed by Mark Rowe

http://bugs.webkit.org/show_bug.cgi?id=12119
Changing the behavior of HistoryItem::pageCache() this morning also necessitated
changing the behavior of HistoryItem::hasPageCache()

  • history/HistoryItem.cpp: (WebCore::HistoryItem::hasPageCache): Add the same pendingRelease check pageCache() has
16:36 Changeset [18602] by bdash

2007-01-04 Mitz Pettel <mitz@webkit.org>

Reviewed by Sam Weinig.

Test: fast/borders/border-radius-huge-assert.html

  • platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::addRoundedRectClip): Fixed the check for border radii that do not fit in the given width or height to work with radii that sum up to more than MAX_INT.
  • rendering/RenderObject.cpp: (WebCore::RenderObject::paintBorder): Ditto.

2007-01-04 Mitz Pettel <mitz@webkit.org>

Reviewed by Sam Weinig.

  • fast/borders/border-radius-huge-assert-expected.checksum: Added.
  • fast/borders/border-radius-huge-assert-expected.png: Added.
  • fast/borders/border-radius-huge-assert-expected.txt: Added.
  • fast/borders/border-radius-huge-assert.html: Added.
16:35 Changeset [18601] by justing

LayoutTests:

Reviewed by john


<rdar://problem/4861080>
GMail Editor: Crash when dropping content into certain list items

  • editing/pasteboard/4861080-expected.checksum: Added.
  • editing/pasteboard/4861080-expected.png: Added.
  • editing/pasteboard/4861080-expected.txt: Added.
  • editing/pasteboard/4861080.html: Added.

WebCore:

Reviewed by john

<rdar://problem/4861080>
GMail Editor: Crash when dropping content into certain list items


A rendering bug (4907469) creates unwanted space at the top of a
list item when its contents are wrapped in span. Dropping content
inside that space causes a crash because positionForCoordinates
fails there and the code that creates drag carets can't handle it.

  • page/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge _visiblePositionForPoint:]): Added the that's inside click handling for the case where positionForCoordinates returns null. We should also fix positionForCoordinates but that's less important: now its only side effect is that a no-op drop is performed instead of a snap back when you drop the contents of one of these list items its own unwanted space.
16:14 Changeset [18600] by bdakin

Reviewed by Adam.

Fix for http://bugs.webkit.org/show_bug.cgi?id=12118 REGRESSION
(Context menus): No context menu displayed when clicking outside a
short document

No test case added since we do not currently have a way to automate
context menus.

  • page/ContextMenuController.cpp: (WebCore::ContextMenuController::handleContextMenuEvent): If the hit test does not find a node, use the document node.
16:04 Changeset [18599] by hyatt

Fix table test for bold change. No idea why this changed by a pixel though.

15:59 Changeset [18598] by andersca

WebCore:

Reviewed by Adam.

Convert NSURLRequest to ResourceRequest in a few places

  • loader/FrameLoader.h:
  • loader/FrameLoaderClient.h:
  • loader/MainResourceLoader.h:
  • loader/mac/FrameLoaderMac.mm: (WebCore::FrameLoader::identifierForInitialRequest): (WebCore::FrameLoader::willUseArchive):
  • loader/mac/MainResourceLoaderMac.mm: (WebCore::MainResourceLoader::isPostOrRedirectAfterPost):
  • platform/graphics/svg/SVGImageEmptyClients.h: (WebCore::SVGEmptyFrameLoaderClient::download): (WebCore::SVGEmptyFrameLoaderClient::willUseArchive):

WebKit:

Reviewed by Adam.

FrameLoaderClient changed again.


  • WebCoreSupport/WebFrameLoaderClient.h:
  • WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::download): (WebFrameLoaderClient::willUseArchive):
15:22 Changeset [18597] by bdakin

Reviewed by Adam.

No need to hit test twice.

  • WebView/WebHTMLView.m: (-[WebHTMLView menuForEvent:]):
15:13 Changeset [18596] by zbujtas

2007-01-04 sareen <shyam.sareen@nokia.com>

Reviewed by Zalan Bujtas (zbujtas@gmail.com).
DESC: Submit button can not be pressed after unsuccessful login to gmail.com
http://bugzilla.opendarwin.org/show_bug.cgi?id=12113

WARNING: NO TEST CASES ADDED OR CHANGED

  • kwq/KWQKHTMLPart.cpp: (KWQKHTMLPart::activateNodeAtPoint):
14:58 Changeset [18595] by hyatt

New layout test for bug 12114.

14:58 Changeset [18594] by hyatt

Bug 12114 fix, make sure left/right floats are allowed to go above
other floats of opposite alignment.

Reviewed by aroben

fast/block/float/independent-align-positioning.html

  • rendering/RenderBlock.cpp: (WebCore::RenderBlock::positionNewFloats):
14:56 Changeset [18593] by andersca

Reviewed by Brady.

http://bugs.webkit.org/show_bug.cgi?id=12116
REGRESSION: ASSERTION FAILED: URL in +[WebDataProtocol _webIsDataProtocolURL:]


<rdar://problem/4908910>
REGRESSION: After switching to Bookmarks view, the browser window is completely empty (no bookmarks are displayed)


  • platform/network/ResourceResponse.h: (WebCore::ResourceResponse::ResourceResponse): Initialize m_isNull
13:57 Changeset [22728] by bdakin

Reviewed by Adam.

A few changes needed to turn on WebCore context menus on the Mac.

  • WebContextMenuClient.cpp: Name change and have the former getCustomMenuFromDefaultItems function return the PlatformMenuDescription since it feels funny to have the client set the new platform description. (WebContextMenuClient::getCustomMenuFromDefaultItems): Same.
  • WebContextMenuClient.h: Same.
13:47 Changeset [18592] by bdakin

WebCore:

Reviewed by Adam.

Turn on WebCore context menus.

  • dom/EventTargetNode.cpp: (WebCore::EventTargetNode::defaultEventHandler): Turn on WebCore menus.
  • page/ContextMenuClient.h: Name change and have the former getCustomMenuFromDefaultItems function return the PlatformMenuDescription since it feels funny to have the client set the new platform description.
  • page/ContextMenuController.cpp: (WebCore::ContextMenuController::handleContextMenuEvent): Above name change. (WebCore::ContextMenuController::contextMenuItemSelected): Use local variable.
  • platform/ContextMenu.cpp: (WebCore::createAndAppendSpeechSubMenu): Fix silly mistake -- make "Stop speaking" actually stop speaking.
  • platform/graphics/svg/SVGImageEmptyClients.h: Name change and have the former getCustomMenuFromDefaultItems function return the PlatformMenuDescription since it feels funny to have the client set the new platform description.

(WebCore::SVGEmptyContextMenuClient::getCustomMenuFromDefaultItems):

WebKit:

Reviewed by Adam.

Turn on WebCore context menus. Delete a bunch of WebKit context
menu code that is no longer needed.

  • DefaultDelegates/WebDefaultContextMenuDelegate.m: Removed a lot of code from this class. This class only still needs to exist for PDF context menus, so we only need to deal with the menu items that might possibly be added to a PDF context menu. (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]): Same. (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): Same.
  • WebCoreSupport/WebContextMenuClient.h: Name change and have the former getCustomMenuFromDefaultItems function return the PlatformMenuDescription since it feels funny to have the client set the new platform description.
  • WebCoreSupport/WebContextMenuClient.mm: Same. (WebContextMenuClient::getCustomMenuFromDefaultItems): Same. Also move in some code that used to be in _menuForElement.
  • WebView/WebHTMLView.m: Deleted a bunch of un-used functions (-[WebHTMLView menuForEvent:]): Turn on menus, and append the Inspect Element item.
  • WebView/WebHTMLViewPrivate.h: Deleted a bunch of un-used functions.
  • WebView/WebView.mm: (-[WebView _menuForElement:defaultItems:]): Removed a lot of code from _menuForElement that now makes more sense elsewhere. Only PDF context menus use this function now. Hopefully we can just get rid of it soon, too.
13:27 Changeset [18591] by yongjzha

2007-01-02 raalexan <rasvan.alexandrescu@nokia.com>

Reviewed by Sachin Padma.
DESC: Clicking links does not work after browser looses focus (TMCN-6UVJRL)
http://bugs.webkit.org/show_bug.cgi?id=11983

  • BrowserView/src/WebKitControl.cpp: (CWebKitControl::SyncCancelL): (CWebKitControl::FinalProgressComplete):
13:03 Changeset [18590] by hyatt

Update for synthetic bold change.

13:02 Changeset [18589] by yongjzha

2007-01-04 raalexan <rasvan.alexandrescu@nokia.com>

Reviewed by Yongjun Zhang.
DESC: Clicking links does not work after browser looses focus (TMCN-6UVJRL)
http://bugs.webkit.org/show_bug.cgi?id=11983

  • BrowserView/src/WebKitControl.cpp: (CWebKitControl::SyncCancelL): (CWebKitControl::FinalProgressComplete):
12:59 Changeset [22727] by hyatt

Always use 1.0 as the synthetic bold offset for now. Fixes bug 9534.

Reviewed by olliej

  • platform/win/FontDataWin.cpp: (WebCore::FontData::platformInit):
12:52 Changeset [18588] by beidson

Reviewed and landed by Brady

Allow a PageCache that is pending release to be resurrected by its
HistoryItem instead of creating a new PageCache. This avoids the
the condition of having two PageCaches for the same HistoryItem, one
current and one pending release but not yet released, which was causing
this and other bugs before.


Replaced the vector of PageCaches pending release with a set of
HistoryItems that are pending release of their PageCache.

  • history/HistoryItem.cpp: (WebCore::HistoryItem::HistoryItem): (WebCore::HistoryItem::setHasPageCache): Check for an existing PageCache pending release, and if found, resurrect it by canceling the release. (WebCore::HistoryItem::pageCache): Return 0 if the PageCache is pending release. (WebCore::itemsWithPendingPageCacheToRelease): Renamed pendingPageCacheToRelease to this. This method now returns a HashSet of HistoryItems that have scheduled their PageCaches for release. (WebCore::HistoryItem::releasePageCachesOrReschedule): Renamed releasePageCache to this. (WebCore::HistoryItem::releasePageCache): Added. Actually closes and releases the PageCache. (WebCore::HistoryItem::releaseAllPendingPageCaches): Rolled closeObjectsInPendingPageCaches into this method. (WebCore::HistoryItem::scheduleRelease): (WebCore::HistoryItem::cancelRelease): Added.
  • history/HistoryItem.h: Removed unused declaration of scheduleReleaseTimer()
  • history/HistoryItemTimer.cpp: (WebCore::HistoryItemTimer::HistoryItemTimer): (WebCore::HistoryItemTimer::callReleasePageCachesOrReschedule):
  • history/HistoryItemTimer.h:
12:50 Changeset [18587] by hyatt

Just make the synthetic bold offset always be 1.0. This fixes bug
9534, synthetic bold looks doubled.

Reviewed by olliej

  • platform/mac/FontDataMac.mm: (WebCore::FontData::platformInit):
11:25 Changeset [18586] by andersca

WebCore:

Reviewed by Brady.

Convert almost all occurrences of NSURLResponse to ResourceResponse.

  • WebCore.exp:
  • loader/DocumentLoader.h:
  • loader/FrameLoader.h:
  • loader/FrameLoaderClient.h:
  • loader/MainResourceLoader.h:
  • loader/NetscapePlugInStreamLoader.h:
  • loader/ResourceLoader.h:
  • loader/SubresourceLoader.h:
  • loader/loader.h:
  • loader/mac/FrameLoaderMac.mm: (WebCore::FrameLoader::willSendRequest): (WebCore::FrameLoader::didReceiveResponse): (WebCore::FrameLoader::opened): (WebCore::FrameLoader::sendRemainingDelegateMessages): (WebCore::FrameLoader::loadedResourceFromMemoryCache): (WebCore::FrameLoader::loadResourceSynchronously):
  • loader/mac/LoaderFunctionsMac.mm: (WebCore::CheckCacheObjectStatus):
  • loader/mac/MainResourceLoaderMac.mm: (WebCore::MainResourceLoader::isPostOrRedirectAfterPost): (WebCore::MainResourceLoader::willSendRequest): (WebCore::MainResourceLoader::continueAfterContentPolicy): (WebCore::MainResourceLoader::didReceiveResponse): (WebCore::MainResourceLoader::loadNow):
  • loader/mac/NetscapePlugInStreamLoaderMac.mm: (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
  • loader/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::willSendRequest): (WebCore::ResourceLoader::didReceiveResponse): (WebCore::ResourceLoader::response):
  • loader/mac/SubresourceLoaderMac.mm: (WebCore::SubresourceLoader::willSendRequest): (WebCore::SubresourceLoader::didReceiveResponse):
  • platform/graphics/svg/SVGImageEmptyClients.h: (WebCore::SVGEmptyFrameLoaderClient::download): (WebCore::SVGEmptyFrameLoaderClient::dispatchWillSendRequest): (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveResponse): (WebCore::SVGEmptyFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache): (WebCore::SVGEmptyFrameLoaderClient::incrementProgress):
  • platform/network/ResourceHandle.h:
  • platform/network/ResourceHandleClient.h:
  • platform/network/ResourceResponse.cpp: (WebCore::ResourceResponse::isHTTP):
  • platform/network/ResourceResponse.h: (WebCore::ResourceResponse::ResourceResponse): (WebCore::ResourceResponse::isNull):
  • platform/network/mac/ResourceResponseMac.mm: (WebCore::ResourceResponse::nsURLResponse): (WebCore::ResourceResponse::doUpdateResourceResponse):

WebKit:

Reviewed by Brady.

Update for WebCore changes.


  • WebCoreSupport/WebFrameLoaderClient.h:
  • WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::download): (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache): (WebFrameLoaderClient::dispatchWillSendRequest): (WebFrameLoaderClient::dispatchDidReceiveResponse): (WebFrameLoaderClient::incrementProgress):
11:21 Changeset [18585] by adele

LayoutTests:

Reviewed by Darin.

Test for <rdar://problem/4887422>
http://bugs.webkit.org/show_bug.cgi?id=11848
REGRESSION (SearchField): Search field on developer.apple.com not drawn with top/bottom borders (11848)

  • fast/forms/searchfield-heights-expected.checksum: Added.
  • fast/forms/searchfield-heights-expected.png: Added.
  • fast/forms/searchfield-heights-expected.txt: Added.
  • fast/forms/searchfield-heights.html: Added.

WebCore:

Reviewed by Darin.

Test: fast/forms/searchfield-heights.html

Override the border and the height for search fields that use -webkit-appearance: searchfield.

  • css/html4.css: Use box-sizing: border-box for search fields. We don't need to have the border-box quirk that we use for the other text fields for this control.
  • rendering/RenderThemeMac.h:
  • rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::searchFieldSizes): Added. (WebCore::RenderThemeMac::setSearchFieldSize): Added. (WebCore::RenderThemeMac::adjustSearchFieldStyle): Override the border and the height of the search field.
10:58 Changeset [18584] by kmccullo

Reviewed by Kevin McCullough.

  • kjs/DateMath.cpp: (KJS::getUTCOffset): Don't cache UTC offset.
10:42 Changeset [18583] by yongjzha

2007-01-03 rathnasa <sornalatha.rathnasamy@nokia.com>

Reviewed by Yongjun Zhang.
DESC: TSW Id: PNIO-6TF99Y: "system error" is displayed for http status code 301
http://bugs.webkit.org/show_bug.cgi?id=11787

  • BrowserView/inc/HttpLoaderEventToUiListener.h:
  • BrowserView/src/HttpLoaderEventToUiListener.cpp: (CHttpLoaderEventToUiListener::ReportHttpError):
  • BrowserView/src/LoadListeners.cpp: (CPageLoadListener::Complete):
10:31 Changeset [18582] by yongjzha

2007-01-03 vbradley <vincent.bradley@nokia.com>

Reviewed by Yongjun Zhang.
DESC: fix for aol.co.uk crash (3.2)
http://bugs.webkit.org/show_bug.cgi?id=12102

  • BrowserCore/Renderers/src/ImageRenderer.cpp: (CImageRenderer::TileInRect):
06:09 Changeset [18581] by lars

compile DumpRenderTree with RPATH. Hopefully this will
fix the automatic regression tests.

06:08 Changeset [18580] by lars

Add some missing stubs

04:49 Changeset [18579] by ap

2007-01-04 Don Gibson <dgibson77@gmail.com>

Reviewed by Alexey.

http://bugs.webkit.org/show_bug.cgi?id=11900:
Windows build bustage

WebCore:

  • WebCore.vcproj/WebCore/WebCore.vcproj:
  • bridge/win/FrameWin.cpp: (WebCore::FrameWin::FrameWin):
  • platform/graphics/BitmapImage.h:
  • platform/graphics/GraphicsContext.cpp: (WebCore::GraphicsContext::setPlatformStrokeColor):
  • platform/graphics/Image.h:
  • platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::drawRect): (WebCore::adjustLineToPixelBoundaries): (WebCore::GraphicsContext::drawLine): (WebCore::GraphicsContext::drawEllipse): (WebCore::GraphicsContext::strokeArc): (WebCore::GraphicsContext::drawConvexPolygon):
  • platform/graphics/cairo/ImageCairo.cpp: (WebCore::BitmapImage::checkForSolidColor): (WebCore::BitmapImage::draw): (WebCore::BitmapImage::drawTiled):
  • platform/graphics/win/ImageWin.cpp: (WebCore::BitmapImage::initPlatformData): (WebCore::BitmapImage::invalidatePlatformData): (WebCore::Image::loadPlatformResource):
  • platform/win/FontWin.cpp: (WebCore::Font::drawGlyphs):
  • platform/win/TemporaryLinkStubs.cpp: (WebCore::userIdleTime): (WebCore::BitmapImage::drawTiled): (WebCore::BitmapImage::getHBITMAP): (WebCore::ContextMenu::~ContextMenu): (WebCore::ContextMenu::appendItem): (WebCore::ContextMenuItem::ContextMenuItem): (WebCore::ContextMenuItem::releasePlatformDescription): (WebCore::ContextMenuItem::type): (WebCore::ContextMenuItem::setType): (WebCore::ContextMenuItem::setAction): (WebCore::ContextMenuItem::setTitle): (WebCore::ContextMenuItem::setSubMenu): (WebCore::ContextMenuItem::setChecked): (WebCore::ContextMenuItem::setEnabled): (WebCore::DocumentLoader::originalRequest): (WebCore::DocumentLoader::request): (WebCore::DocumentLoader::unreachableURL): (WebCore::DocumentLoader::getResponseRefreshAndModifiedHeaders): (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll): (WebCore::DocumentLoader::setCommitted): (WebCore::DocumentLoader::isLoading): (WebCore::DocumentLoader::prepareForLoadStart): (WebCore::DocumentLoader::isClientRedirect): (WebCore::DocumentLoader::title): (WebCore::DocumentLoader::urlForHistory): (WebCore::Editor::markMisspellingsAfterTypingToPosition): (WebCore::FrameLoader::load): (WebCore::FrameLoader::referrer): (WebCore::FrameLoader::dataURLBaseFromRequest): (WebCore::FrameLoader::opened): (WebCore::FrameLoader::applyUserAgent): (WebCore::GraphicsContext::strokeRect): (WebCore::IconDatabase::iconForPageURL): (WebCore::IconDatabase::defaultIcon): (WebCore::IconDatabase::retainIconForPageURL): (WebCore::IconDatabase::releaseIconForPageURL): (WebCore::PageCache::close): (WebCore::ResourceHandle::willLoadFromCache): (WebCore::SearchPopupMenu::saveRecentSearches): (WebCore::SearchPopupMenu::loadRecentSearches): (WebCore::SearchPopupMenu::SearchPopupMenu):

WebKit:

  • COM/ChromeClientWin.cpp: (ChromeClientWin::addMessageToConsole): (ChromeClientWin::runBeforeUnloadConfirmPanel):
  • COM/ChromeClientWin.h:
  • COM/ContextMenuClientWin.cpp: (ContextMenuClientWin::contextMenuItemSelected):
  • COM/ContextMenuClientWin.h:
  • COM/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::setDocumentViewFromPageCache): (WebFrameLoaderClient::forceLayout): (WebFrameLoaderClient::forceLayoutForNonHTML): (WebFrameLoaderClient::updateGlobalHistoryForStandardLoad): (WebFrameLoaderClient::updateGlobalHistoryForReload): (WebFrameLoaderClient::shouldGoToHistoryItem): (WebFrameLoaderClient::saveScrollPositionAndViewStateToItem): (WebFrameLoaderClient::restoreScrollPositionAndViewState): (WebFrameLoaderClient::provisionalLoadStarted): (WebFrameLoaderClient::saveDocumentViewToPageCache): (WebFrameLoaderClient::canCachePage):
  • COM/WebFrameLoaderClient.h:
  • WebKit.vcproj/WebKit.vcproj:
03:38 Changeset [18578] by ap

2007-01-04 Lars Naesbye Christensen <larsnaesbye@stud.ku.dk>

Reviewed by Darin.

http://bugs.webkit.org/show_bug.cgi?id=11295
Nightly download size is misleading

  • images/download.png: Changed the size to 6 MB.
03:23 Changeset [18577] by ap

Reviewed by Darin.

http://bugs.webkit.org/show_bug.cgi?id=11611
REGRESSION: No http referer header sent on XMLHttpRequest

Test: http/tests/xmlhttprequest/referer.html

  • loader/FrameLoader.h: Removed FrameLoader::addExtraFieldsToRequest(NSMutableURLRequest*, bool, bool), which is no longer used.
  • loader/mac/FrameLoaderMac.mm: Ditto.
  • WebCore.exp: Do not export this method (WebKit doesn't use it).
  • loader/mac/SubresourceLoaderMac.mm: (WebCore::SubresourceLoader::create): Rewrote to create the request with ResourceRequest::nsURLRequest.
  • platform/PlatformString.h: (WebCore::operator!): Added. Previously, attempts to use operator! on a String would result with an NSString* conversion, which never returns nil. This was causing a problem in SubresourceLoader::create().

01/03/07:

23:48 Changeset [18576] by lars

fix the Qt build

22:36 Changeset [18575] by bdash

2007-01-03 Mitz Pettel <mitz@webkit.org>

Reviewed by Mark Rowe.

  • css1/box_properties/acid_test-expected.checksum:
  • css1/box_properties/acid_test-expected.png:
  • css1/box_properties/acid_test-expected.txt:
21:28 Changeset [18574] by ddkilzer

LayoutTests:

Reviewed by Hyatt.

  • css2.1/t0804-c5507-padn-r-00-c-ag-expected.checksum:
  • css2.1/t0804-c5507-padn-r-00-c-ag-expected.png:
  • css2.1/t0804-c5507-padn-r-00-c-ag-expected.txt:
  • css2.1/t0804-c5509-padn-l-00-b-ag-expected.checksum:
  • css2.1/t0804-c5509-padn-l-00-b-ag-expected.png:
  • css2.1/t0804-c5509-padn-l-00-b-ag-expected.txt:
  • css2.1/t09-c5526c-display-00-e-expected.checksum:
  • css2.1/t09-c5526c-display-00-e-expected.png:
  • css2.1/t09-c5526c-display-00-e-expected.txt:
  • fast/block/basic/011-expected.checksum:
  • fast/block/basic/011-expected.png:
  • fast/block/basic/011-expected.txt:
  • fast/css/percentage-non-integer-expected.checksum: Added.
  • fast/css/percentage-non-integer-expected.png: Added.
  • fast/css/percentage-non-integer-expected.txt: Added.
  • fast/css/percentage-non-integer.html: Added.
  • tables/mozilla/bugs/bug4385-expected.checksum:
  • tables/mozilla/bugs/bug4385-expected.png:
  • tables/mozilla/bugs/bug4385-expected.txt:
  • tables/mozilla_expected_failures/core/col_span2-expected.checksum:
  • tables/mozilla_expected_failures/core/col_span2-expected.txt:

WebCore:

Reviewed by Hyatt.

Test: fast/css/percentage-non-integer.html

Added floating point constructor and accessors to Length for use with
Percent lengths only. The raw value of a percent length is the integer
part of a constant multiple of the original double value. The constant
is percentScaleFactor, which is currently 128.


Added assertions that the correct constructors and accessors are used
depending on the type: the double-based percent(), setValue() and Length()
for the Percent type, and the integer-based value(), setValue() and Length()
for all other types.


calcValue() and calcMinValue() work the same as before, regardless of the
type.

Added helpers for testing if the value is 0, positive, negative or undefined
without having to check the type first.


Added raw value accessors. These are useful for doing integer math and
comparisons with scaled percent values or doing Length type-agnostic math.

Changed the rest of the code to use the appropriate accessors and helpers.

  • css/CSSComputedStyleDeclaration.cpp: (WebCore::valueForLength): (WebCore::primitiveValueFromLength): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  • css/cssstyleselector.cpp: (WebCore::convertToLength): (WebCore::CSSStyleSelector::applyProperty): (WebCore::CSSStyleSelector::mapBackgroundSize): (WebCore::CSSStyleSelector::mapBackgroundXPosition): (WebCore::CSSStyleSelector::mapBackgroundYPosition):
  • platform/StringImpl.cpp: (WebCore::parseLength):
  • rendering/AutoTableLayout.cpp: (WebCore::AutoTableLayout::recalcColumn): (WebCore::AutoTableLayout::fullRecalc): (WebCore::AutoTableLayout::calcMinMaxWidth): (WebCore::AutoTableLayout::calcEffectiveWidth): (WebCore::AutoTableLayout::layout): (WebCore::AutoTableLayout::calcPercentages):
  • rendering/FixedTableLayout.cpp: (WebCore::FixedTableLayout::calcWidthArray): (WebCore::FixedTableLayout::layout):
  • rendering/Length.h: (WebCore::Length::Length): (WebCore::Length::value): (WebCore::Length::rawValue): (WebCore::Length::percent): (WebCore::Length::setValue): (WebCore::Length::setRawValue): (WebCore::Length::calcValue): (WebCore::Length::calcMinValue): (WebCore::Length::isUndefined): (WebCore::Length::isZero): (WebCore::Length::isPositive): (WebCore::Length::isNegative):
  • rendering/RenderBR.cpp: (WebCore::RenderBR::lineHeight):
  • rendering/RenderBlock.cpp: (WebCore::RenderBlock::isSelfCollapsingBlock):
  • rendering/RenderBox.cpp: (WebCore::cacluateBackgroundSize): (WebCore::RenderBox::calcWidth): (WebCore::RenderBox::calcHeight): (WebCore::RenderBox::calcReplacedWidth): (WebCore::RenderBox::calcReplacedHeight): (WebCore::RenderBox::calcAbsoluteHorizontal): (WebCore::RenderBox::calcAbsoluteVertical):
  • rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::allowedChildFlex):
  • rendering/RenderFlow.cpp: (WebCore::RenderFlow::lineHeight):
  • rendering/RenderImage.cpp: (WebCore::RenderImage::calcReplacedWidth): (WebCore::RenderImage::calcReplacedHeight):
  • rendering/RenderLayer.cpp: (WebCore::Marquee::direction): (WebCore::Marquee::start):
  • rendering/RenderObject.cpp: (WebCore::RenderObject::mustRepaintBackgroundOrBorder): (WebCore::RenderObject::lineHeight):
  • rendering/RenderSlider.cpp: (WebCore::RenderSlider::layout): Added FIXMEs.
  • rendering/RenderStyle.h: (WebCore::LengthBox::nonZero): (WebCore::RenderStyle::initialLineHeight):
  • rendering/RenderTable.cpp: (WebCore::RenderTable::calcWidth):
  • rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::addCell): (WebCore::RenderTableSection::layoutRows):
21:25 Changeset [18573] by bdash

Versioning.

21:23 Changeset [18572] by ddkilzer

LayoutTests:

Reviewed by Hyatt.

  • fast/css/content-dynamic-expected.checksum: Added.
  • fast/css/content-dynamic-expected.png: Added.
  • fast/css/content-dynamic-expected.txt: Added.
  • fast/css/content-dynamic.html: Added.

WebCore:

Reviewed by Hyatt.

Test: fast/css/content-dynamic.html

  • dom/Node.cpp: (WebCore::Node::diff): Changed to return 'Detach' if the styles' content data are not equivalent.
21:19 Changeset [18571] by ddkilzer

LayoutTests:

Reviewed by Darin.

  • fast/frames/negative-remaining-length-crash-expected.txt: Added.
  • fast/frames/negative-remaining-length-crash.html: Added.

WebCore:

Reviewed by Darin.

Test: fast/frames/negative-remaining-length-crash.html

  • rendering/RenderFrameSet.cpp: (WebCore::RenderFrameSet::layOutAxis): Treat negative availableLength as zero.
18:17 Changeset [18570] by bdash

2007-01-03 Mark Rowe <bdash@webkit.org>

Reviewed by Anders.

  • Scripts/run-webkit-tests: Launch Safari using the same WebKit build configuration as the layout tests used.
18:01 Changeset [18569] by sullivan

Written by Darin over my shoulder; reviewed by me

  • fixed <rdar://problem/4907437> Find doesn't work if invoked when a form field is focused
  • page/Frame.cpp: (WebCore::isInShadowTree): new helper function used by findString (WebCore::Frame::findString): when deciding whether to start from the selection, ignore selections that are in a shadow tree (i.e. in a form control)
17:21 Changeset [18568] by beidson

Reviewed by Mark Rowe

Fixes http://bugs.webkit.org/show_bug.cgi?id=12089

  • loader/FrameLoader.cpp: (WebCore::FrameLoader::updateHistoryForCommit): Null check the documentLoader
17:20 Changeset [18567] by sullivan
  • WebView/WebPDFView.mm: (-[WebPDFView _openWithFinder:]): Tiger build fix: use [NSNumber initWithInt:] rather than the new [NSNumber initWithInteger:]
17:07 Changeset [18566] by hyatt

Add layout test for inline generated content.

17:07 Changeset [18565] by hyatt

Relax the display type restriction a little bit for generated content inside
inlines. We still don't allow block display types like we should (since this
will cause a crash), but we at least handle inline-table and inline-block now.

Reviewed by beth

fast/css-generated-content/inline-display-types.html

  • rendering/RenderContainer.cpp: (WebCore::RenderContainer::updatePseudoChildForObject):
17:05 Changeset [18564] by justing

LayoutTests:

Reviewed by john

  • editing/pasteboard/merge-end-blockquote-expected.txt: A recent change caused an acceptable change in these expected results.

WebCore:

Reviewed by john


<rdar://problem/4663571> Spell checking won't cross boundary of individual To-Do item


No layout tests because advanceToNextMisspelling isn't yet exposed to automated tests.

  • editing/mac/EditorMac.mm: (WebCore::Editor::advanceToNextMisspelling): Confine spell checking to the highest editable root, instead of the lowest. Use firstEditablePosition... to look for an editable position.
16:57 Changeset [18563] by bdakin

Fixing silly mistake.

  • platform/ContextMenu.cpp: (WebCore::ContextMenu::checkOrEnableIfNeeded): Called wrong string function.
16:55 Changeset [18562] by sullivan

Reviewed by Kevin Decker

  • fixed <rdar://problem/4145714> WebKit's PDFView's "Open in Preview" puts the PDF in /tmp, both group and world-readable
  • WebView/WebPDFView.mm: (-[WebPDFView _openWithFinder:]): Make the file only readable by the current user
16:53 Changeset [18561] by beidson

Reviewed by Anders

http://bugs.webkit.org/show_bug.cgi?id=12093 - Assertion in certain SVG layout tests
I can't really think of a cleaner way to fix this then to help these SVG cases avoid
the ASSERT - hopefully we can clean up the svg-as-image situation as the loader stabilizes
and we find better ways to handle it...

  • loader/mac/DocumentLoaderMac.mm: (WebCore::DocumentLoader::urlForHistory): empty-check the url before passing it to the ASSERTing method
16:49 Changeset [22726] by darin

Reviewed by Adele.

  • removed some obsolete source files
  • WebCore.vcproj/WebCore.vcproj: Removed obsolete files.
16:40 Changeset [18560] by darin

Reviewed by Adele.

  • removed some obsolete source files
  • CMakeLists.txt: Removed obsolete files.
  • WebCore.pro: Ditto.
  • WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
  • WebCore.xcodeproj/project.pbxproj: Ditto.
  • WebCoreSources.bkl: Ditto.
  • html/HTMLGenericFormElement.h: Removed reference to RenderFormElement.
  • platform/qt/ComboBoxQt.cpp: Removed.
  • platform/qt/LineEditQt.cpp: Removed.
  • platform/qt/ListBoxQt.cpp: Removed.
  • platform/qt/TextEditQt.cpp: Removed.
  • rendering/RenderFormElement.cpp: Removed.
  • rendering/RenderFormElement.h: Removed.
  • rendering/RenderLabel.cpp: Removed.
  • rendering/RenderLabel.h: Removed.
16:27 Changeset [18559] by darin

LayoutTests:

Reviewed by Hyatt.

  • test for bug where :after content appeared in the wrong order
  • fast/css-generated-content/after-order-expected.checksum: Added.
  • fast/css-generated-content/after-order-expected.png: Added.
  • fast/css-generated-content/after-order-expected.txt: Added.
  • fast/css-generated-content/after-order.html: Added.
  • fast/css-generated-content/resources/greenbox.png: Added.

WebCore:

Reviewed by Hyatt.

  • fix bug where :after content appears backwards

Test: fast/css-generated-content/after-order.html

  • rendering/RenderBlock.cpp: (WebCore::isAfterContent): Added. (WebCore::RenderBlock::addChildToFlow): Use isAfterContent.
  • rendering/RenderInline.cpp: (WebCore::isAfterContent): Added. (WebCore::RenderInline::addChildToFlow): Use isAfterContent.
16:15 Changeset [18558] by thatcher

Merging r18381 and r18388.

16:04 Changeset [18557] by hyatt

Implement box-shadow parsing... getting it all into the RenderStyle.

Reviewed by beth

  • css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  • css/CSSPropertyNames.in:
  • css/cssparser.cpp: (WebCore::CSSParser::parseValue):
  • css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty):
  • rendering/RenderStyle.cpp: (WebCore::StyleCSS3NonInheritedData::StyleCSS3NonInheritedData): (WebCore::StyleCSS3NonInheritedData::operator==): (WebCore::StyleCSS3NonInheritedData::shadowDataEquivalent): (WebCore::RenderStyle::diff): (WebCore::RenderStyle::setBoxShadow):
  • rendering/RenderStyle.h: (WebCore::RenderStyle::boxShadow):
15:48 Changeset [22725] by bdakin

Reviewed by John.

Add stubs for all of the localized context menu item titles. The
stubs just return English Strings until we have a localization
solution in WebKit.

15:47 Changeset [18556] by thatcher

New tag (part 2).

15:46 Changeset [18555] by thatcher

New tag (part 1).

15:38 Changeset [18554] by bdakin

WebCore:

Reviewed by John.

Call into WebKit to get localized strings for all of the context
menu item titles.

WebKit:

Reviewed by John.

Make localized strings for all of the context menu item titles that
are accessible to WebCore.

14:24 Changeset [22724] by andersca

Reviewed by Geoff.

<rdar://problem/4857027>
ragnarok online misrenders (due to lack of support for windowless plugins)

  • plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::updateWindow): Rename from updateHwnd since this now handles updating the clip rect for windowless plugins.


(WebCore::PluginViewWin::paintMissingPluginIcon):
New function which paints the missing plugin icon.


(WebCore::PluginViewWin::paint):
Do windowless painting here.


(WebCore::PluginViewWin::handleKeyboardEvent):
(WebCore::PluginViewWin::handleMouseEvent):
(WebCore::PluginViewWin::handleEvent):
New functions for handling mouse and keyboard events, translating them and handing them to the plugin.


(WebCore::PluginViewWin::setNPWindowRect):
Set correct window rect for windowless plugins.


(WebCore::PluginViewWin::getValue):
Add variable for containing HWND.


(WebCore::PluginViewWin::setValue):
Add windowless and transparent variables.


(WebCore::PluginViewWin::invalidateRect):
(WebCore::PluginViewWin::invalidateRegion):
(WebCore::PluginViewWin::forceRedraw):
Implement these.


(WebCore::PluginViewWin::determineQuirks):
Set quirks now that we support windowless flash.


(WebCore::PluginViewWin::PluginViewWin):
Only create the window if the plugin isn't windowless.


  • plugins/win/PluginViewWin.h: New declarations.


  • plugins/win/npapi.cpp: (NPN_InvalidateRect): (NPN_InvalidateRegion): (NPN_ForceRedraw): Implement these and forward them to the plugin view.
14:19 Changeset [18553] by beidson

Reviewed by Darin and Geoff

http://bugs.webkit.org/show_bug.cgi?id=12105 - Crash visiting Acid2 test page
-Replace lost "free nil checking" in the WebKit->WebCore conversion of the BackForwardList
-Changed ::createItem and ::createItemTree to ::createHistoryItem and ::createHistoryItemTree

  • loader/FrameLoader.cpp: (WebCore::FrameLoader::createHistoryItem): (WebCore::FrameLoader::addBackForwardItemClippedAtTarget): (WebCore::FrameLoader::createHistoryItemTree): (WebCore::FrameLoader::updateHistoryForInternalLoad):
  • loader/FrameLoader.h:
13:48 Changeset [18552] by andersca

Reviewed by Geoff.


Allow plugin elements to handle off events to their widgets.


  • html/HTMLPlugInElement.cpp: (WebCore::HTMLPlugInElement::defaultEventHandler):
  • html/HTMLPlugInElement.h:
  • platform/Widget.h: (WebCore::Widget::handleEvent):
12:56 Changeset [18551] by beidson

Reviewed by John Sullivan

In the Bookmarks View/History View, favicon may be the incorrect size

  • History/WebHistoryItem.mm: (-[WebHistoryItem icon]): Call to the WebIconDatabase until a WebCore issue is resolved
11:35 Changeset [18550] by adele

Reviewed by Darin.

  • Fix for <rdar://problem/4455147> Safari allows division slash character in URLs, which looks like slash character (not fixed by IDNScriptWhiteList.txt)
  • Misc/WebNSURLExtras.m: (allCharactersInIDNScriptWhiteList): Always disallow the division slash character.
11:16 Changeset [18549] by ap

Reviewed by Darin.

Test for http://bugs.webkit.org/show_bug.cgi?id=3420
XMLHttpRequest does not handle set-cookie headers

  • http/tests/xmlhttprequest/cookies-expected.txt: Added.
  • http/tests/xmlhttprequest/cookies.html: Added.
  • http/tests/xmlhttprequest/resources/get-set-cookie.cgi: Added.
10:38 Changeset [18548] by yongjzha

2006-12-28 rathnasa <sornalatha.rathnasamy@nokia.com>

Reviewed by Yongjun Zhang.
DESC: Fix the issue with the SQL query associated with the checkin made for the following bug:
TSW id:EYWG-6W7B4F: Error note "Program closed:BrowserNG" after clicking Submit button on test page
http://bugs.webkit.org/show_bug.cgi?id=11781

  • BrowserView/inc/FormDataAutoFillStore.h:
  • BrowserView/src/FormDataAutoFillStore.cpp: (CFormDataAutoFillStore::GetDataL): (CFormDataAutoFillStore::DeleteData): (CFormDataAutoFillStore::InsertData): (CFormDataAutoFillStore::CreateDatabase): (CFormDataAutoFillStore::ReadLongTextL):
10:25 Changeset [18547] by yongjzha

2007-01-03 sareen <shyam.sareen@nokia.com>

Reviewed by Yongjun Zhang.
DESC: Vodafone Specific Storage test failing.
http://bugs.webkit.org/show_bug.cgi?id=12101

  • ResourceLoader/CacheSrc/HttpCacheUtil.cpp: (HttpCacheUtil::VSSCacheContent):
10:17 Changeset [18546] by yongjzha

2006-12-28 rathnasa <sornalatha.rathnasamy@nokia.com>

Reviewed by Yongjun Zhang.
DESC: Put back the patches r18389, r18183 as well as fix the issue with the SQL query.
Patches r18389, r18183 fix the following two bugs:
TSW ID# SRAY-6WQKA6: Formdataautofill: If the form field contains single or double quotes the SQL query to insert, delete data does not work.
http://bugs.webkit.org/show_bug.cgi?id=11927
TSW id:EYWG-6W7B4F: Error note "Program closed:BrowserNG" after clicking Submit button on test page
http://bugs.webkit.org/show_bug.cgi?id=11781

  • BrowserView/inc/FormDataAutoFillStore.h:
  • BrowserView/src/FormDataAutoFillStore.cpp: (CFormDataAutoFillStore::NewL): (CFormDataAutoFillStore::CFormDataAutoFillStore): (CFormDataAutoFillStore::ConstructL): (CFormDataAutoFillStore::~CFormDataAutoFillStore): (CFormDataAutoFillStore::GetDataL): (CFormDataAutoFillStore::DeleteDataL): (CFormDataAutoFillStore::InsertDataL): (CFormDataAutoFillStore::SaveData): (CFormDataAutoFillStore::ClearData): (CFormDataAutoFillStore::OpenDatabase): (CFormDataAutoFillStore::CloseDatabase): (CFormDataAutoFillStore::OpenTableForUse): (CFormDataAutoFillStore::CloseTableAfterUse): (CFormDataAutoFillStore::CreateDatabase): (CFormDataAutoFillStore::CreateFormDataTableL): (CFormDataAutoFillStore::WriteLongTextL): (CFormDataAutoFillStore::ReadLongTextL):
04:04 Changeset [18545] by lars

Fix the Qt build

00:31 Changeset [18544] by beidson

Controversially reviewed by Tim H. and Maciej

Fixes http://bugs.webkit.org/show_bug.cgi?id=12086, http://bugs.webkit.org/show_bug.cgi?id=12088,
possibly http://bugs.webkit.org/show_bug.cgi?id=12087, and probably a slew of others

WebHistoryItems returned from the WebBackForwardList accessors were being release/retained out-of-order
by the Safari app. This bug never surfaced before because the WebBackForwardList had a retain on the
item, preventing deallocation. Since the items are now just temporary wrappers, the list
is no longer actually retaining them.

This solution is to simulate the ownership with a [[id retain] autorelease] - gross, but maybe the
only solution for now... =/

We can possibly consider reverting this fix at a later date - that task is marked by
<rdar://problem/4905705>

  • History/WebBackForwardList.mm: (-[WebBackForwardList backItem]): (-[WebBackForwardList currentItem]): (-[WebBackForwardList forwardItem]): (-[WebBackForwardList itemAtIndex:]):
Note: See TracTimeline for information about the timeline view.