- 20 Jan, 2007 1 commit
-
-
sullivan authored
Reviewed by Darin - WebCore part of fix for: <rdar://problem/4451715> REGRESSION: On some sites, have to type a character before username/password autofill kicks in * loader/FrameLoaderClient.h: new dispatchDidFinishDocumentLoad call * loader/FrameLoader.cpp: (WebCore::FrameLoader::finishedParsing): call dispatchDidFinishDocumentLoad * platform/graphics/svg/SVGImageEmptyClients.h: (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFinishDocumentLoad): empty implementation for dispatchDidFinishDocumentLoad WebKit: Reviewed by Darin - WebKit part of fix for: <rdar://problem/4451715> REGRESSION: On some sites, have to type a character before username/password autofill kicks in Added new webView:didFinishDocumentLoadForFrame: SPI and wired it up * WebView/WebViewPrivate.h: declare new delegate method * WebCoreSupport/WebFrameLoaderClient.h: declare dispatchDidFinishDocumentLoad() * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDidFinishDocumentLoad): new method, calls new delegate method * DefaultDelegates/WebDefaultFrameLoadDelegate.m: (-[WebDefaultFrameLoadDelegate webView:didFinishDocumentLoadForFrame:]): empty default implementation of new delegate method WebKitQt: Added stubs for new callbacks, to try to avoid breaking the Qt port. * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): * WebCoreSupport/FrameLoaderClientQt.h: git-svn-id: svn://svn.chromium.org/blink/trunk@18994 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
- 19 Jan, 2007 33 commits
-
-
adele authored
Reviewed by Hyatt. Test for <rdar://problem/4760280> REGRESSION: Bottom portion of text hangs off edge of SELECT element at http://macreviewzone.com/index.php * fast/forms/control-restrict-line-height-expected.checksum: Added. * fast/forms/control-restrict-line-height-expected.png: Added. * fast/forms/control-restrict-line-height-expected.txt: Added. * fast/forms/control-restrict-line-height.html: Added. WebCore: Reviewed by Hyatt. Fix for <rdar://problem/4760280> REGRESSION: Bottom portion of text hangs off edge of SELECT element at http://macreviewzone.com/index.php Test: fast/forms/control-restrict-line-height.html * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::setFontFromControlSize): Don't honor line-height for controls that have restricted font size. git-svn-id: svn://svn.chromium.org/blink/trunk@18993 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
andersca authored
http://bugs.webkit.org/show_bug.cgi?id=12308 REGRESSION(r18910): Crash in WebBaseNetscapePluginStream cancelLoadAndDestroyStreamWithError * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:DOMElement:]): Move code from initWithFrame in here. git-svn-id: svn://svn.chromium.org/blink/trunk@18992 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
darin authored
git-svn-id: svn://svn.chromium.org/blink/trunk@18991 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
darin authored
git-svn-id: svn://svn.chromium.org/blink/trunk@18990 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
darin authored
Reviewed by Adele. - test for html4.css problem where we had a missing semicolon and thus missed parsing a style rule * fast/forms/radio-no-theme-padding-expected.txt: Added. * fast/forms/radio-no-theme-padding.html: Added. - test for http://bugs.webkit.org/show_bug.cgi?id=12008 <rdar://problem/4901834> REGRESSION(NativeListBox): Focus is not placed on SELECT after mousing down on OPTION * fast/forms/select-list-box-mouse-focus-expected.txt: Added. * fast/forms/select-list-box-mouse-focus.html: Added. - test for http://bugs.webkit.org/show_bug.cgi?id=11999 <rdar://problem/4940442> REGRESSION: Incomplete listing in TVListings window (11999) Note: Only the pixel test shows the failure in the old version. Note: I generated the pixel results on Leopard -- may need to be regenated on Tiger. * fast/forms/select-list-box-with-height-expected.checksum: Added. * fast/forms/select-list-box-with-height-expected.png: Added. * fast/forms/select-list-box-with-height-expected.txt: Added. * fast/forms/select-list-box-with-height.html: Added. WebCore: Reviewed by Adele. - fix http://bugs.webkit.org/show_bug.cgi?id=11999 <rdar://problem/4940442> REGRESSION: Incomplete listing in TVListings window (11999) Fix was to use the actual size of the renderer in the RenderListBox case, instead of always using the size specified by the select element. Test: fast/forms/select-list-box-with-height.html - fix http://bugs.webkit.org/show_bug.cgi?id=12008 <rdar://problem/4901834> REGRESSION(NativeListBox): Focus is not placed on SELECT after mousing down on OPTION Test: fast/forms/select-list-box-mouse-focus.html - fix bug where auto-scrolling was not working in list box select elements No test yet. - fix a missing semicolon in the radio/checkbox section of html4.css Test: fast/forms/radio-no-theme-padding.html - fix bug where the scroll bars for select elements were pixel-type scroll bars even though the scrolling is line at a time scrolling No test. * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::selectAll): Removed an explicit call to repaint, since the RenderListBox now does that in selectionChanged. (WebCore::HTMLSelectElement::notifyOptionSelected): Call the new selectionChanged instead of the old setSelectionChanged. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Added a call to focus. Removed an explicit call to repaint and added a call to the new setMouseDownMayStartAutoscroll function in EventHandler. Removed an explicit call to repaint as above. (WebCore::HTMLSelectElement::updateListBoxSelection): Call the new selectionChanged instead of the old setSelectionChanged. * page/EventHandler.h: Added setMouseDownMayStartAutoscroll, needed because the existing code to set that flag won't get triggered when the select element's default event handler handles the event. * rendering/RenderListBox.h: Made ScrollbarClient a private base class. Removed setSelectionChanged and m_selectionChanged. Added selectionChanged, which is really just a synonym for repaint for now. Moved valueChanged, the ScrollbarClient function implementations, and itemHeight into the private part of the class. Added numVisibleItems() and listHeight() to the private section. Changed m_vBar to be a RefPtr. * rendering/RenderListBox.cpp: Removed unneeded includes. Moved all the constants to the top of the file. (WebCore::RenderListBox::RenderListBox): Removed initialization of m_selectionChanged because it was removed and of m_vBar because it's now a RefPtr which is automaticall initialized. (WebCore::RenderListBox::~RenderListBox): Removed the explicit deref of m_vBar because it's a RefPtr. Added null checking for FrameView. (WebCore::RenderListBox::updateFromElement): Use numItems(). (WebCore::RenderListBox::calcMinMaxWidth): Added null checking for FrameView and used RefPtr for the newly-created scroll bar. (WebCore::RenderListBox::size): Tweaked formatting. Also renamed the misleading minDefaultSize to maxDefaultSize, since it's a maximum. (WebCore::RenderListBox::numVisibleItems): Added. Used in many places where size() was used before. This computes the number of rows we have room for. We don't need a row space after the last row, and this takes that into account. (WebCore::RenderListBox::numItems): Tweaked to remove the local variable. (WebCore::RenderListBox::listHeight): Added. Total height of all the rows and spaces between them. (WebCore::RenderListBox::calcHeight): Changed to call itemHeight for the row height, and to subtract the last row spacing off since we don't need a space after the last row. Changed the scroll bar setup to make it correspond to row numbers, not pixel numbers. (WebCore::RenderListBox::baselinePosition): Moved the comment to the constant declaration at the top of the file. (WebCore::RenderListBox::itemBoundingBoxRect): Simplified by using the itemHeight() function. (WebCore::RenderListBox::paintObject): Changed to use numItems and to use numVisibleItems instead of size. (WebCore::RenderListBox::isPointInScrollbar): Added get() call since m_vBar is now a RefPtr. (WebCore::RenderListBox::listIndexAtOffset): Changed to use numItems(), itemHeight(), and rearranged a min/max combo so it starts with the low, then the value, then the high value for pinning. (WebCore::RenderListBox::autoscroll): Use numVisibleItems() instead of size(). (WebCore::RenderListBox::stopAutoscroll): Removed an unneeded nil check of the element. (WebCore::RenderListBox::scrollToRevealElementAtListIndex): Changed to use numItems() and to use numVisibleItems() instead of size(). Also changed scroll bar code to work more simply now that the scroll bar is row-based. (WebCore::RenderListBox::listIndexIsVisible): Changed to use numVisibleItems() instead of size(). (WebCore::RenderListBox::valueChanged): Simplified since the scrollbar is now row-based. Also removed an unnecessary null check. (WebCore::RenderListBox::itemHeight): Updated for name change from optionsSpacingMiddle to rowSpacing. (WebCore::RenderListBox::scrollHeight): Changed to use listHeight(). (WebCore::RenderListBox::setScrollTop): Simplified, and removed the code that does nothing if the computed list index is visible (which did not make sense for this function and seemed a cut and paste error from the scrollToReveal function). The scrollbar part is simpler now that it's row-based. (WebCore::RenderListBox::windowClipRect): Changed to use document()->view() so we don't have to include RenderView.h. * css/html4.css: Added a semicolon I noticed was missing. git-svn-id: svn://svn.chromium.org/blink/trunk@18989 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bdakin authored
Reviewed by Maciej and Darin. Fix for <rdar://problem/4702420> REGRESSION: Null characters need to be stripped from text nodes (townhall.com) This was a regression from the fix for <rdar://problem/3727939> Safari strips \0 characters from HTML tags making them valid, which was fixed with r12652. We still need to strip null characters in text nodes. * html/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::write): No behavior change here, this is just to make Darin happy. (WebCore::HTMLTokenizer::processToken): Call into StringImpl's new createStrippingNull function instead of the normal StringImpl constructor. * platform/StringImpl.cpp: (WebCore::StringImpl::createStrippingNull): Strip null. * platform/StringImpl.h: LayoutTests: Reviewed by Maciej and Darin. New layout tests and some updates results for the fix for <rdar:// problem/4702420> REGRESSION: Null characters need to be stripped from text nodes (townhall.com) * fast/dom/stripNullFromTextNodes-expected.checksum: Added. * fast/dom/stripNullFromTextNodes-expected.png: Added. * fast/dom/stripNullFromTextNodes-expected.txt: Added. * fast/dom/stripNullFromTextNodes.html: Added. * fast/js/null-char-in-string-expected.txt: New results. * fast/text/stripNullFromText-expected.checksum: Added. * fast/text/stripNullFromText-expected.png: Added. * fast/text/stripNullFromText-expected.txt: Added. * fast/text/stripNullFromText.html: Added. * tables/mozilla/images/adforce_imgis_com-expected.txt: New results. * tables/mozilla_expected_failures/images/adforce_imgis_com- expected.checksum: Removed. This is the same test as the one above. The same test was in two places. * tables/mozilla_expected_failures/images/adforce_imgis_com- expected.png: Removed. * tables/mozilla_expected_failures/images/adforce_imgis_com- expected.txt: Removed. * tables/mozilla_expected_failures/images/adforce_imgis_com.html: Removed. git-svn-id: svn://svn.chromium.org/blink/trunk@18988 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ddkilzer authored
Reviewed by NOBODY (no-svg build fix). * ksvg2/svg/SVGMPathElement.cpp: Added #ifdef SVG_SUPPORT/#endif guards. git-svn-id: svn://svn.chromium.org/blink/trunk@18987 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
andersca authored
* WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::setStatusbarText): git-svn-id: svn://svn.chromium.org/blink/trunk@18986 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
andersca authored
* WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::runJavaScriptAlert): (WebCore::ChromeClientQt::runJavaScriptConfirm): (WebCore::ChromeClientQt::runJavaScriptPrompt): (WebCore::ChromeClientQt::setStatusbarText): * WebCoreSupport/ChromeClientQt.h: git-svn-id: svn://svn.chromium.org/blink/trunk@18985 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
andersca authored
* platform/graphics/svg/SVGImageEmptyClients.h: (WebCore::SVGEmptyChromeClient::setStatusbarText): git-svn-id: svn://svn.chromium.org/blink/trunk@18984 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
andersca authored
Reviewed by Adam. Move JavaScript alert and status bar functions to the chrome. * bindings/js/kjs_window.cpp: (KJS::WindowFunc::callAsFunction): * page/Chrome.cpp: (WebCore::Chrome::runJavaScriptAlert): (WebCore::Chrome::runJavaScriptConfirm): (WebCore::Chrome::runJavaScriptPrompt): (WebCore::Chrome::setStatusBarText): * page/Chrome.h: * page/ChromeClient.h: * page/Frame.cpp: (WebCore::Frame::setJSStatusBarText): (WebCore::Frame::setJSDefaultStatusBarText): * page/Frame.h: * page/mac/FrameMac.h: * page/mac/FrameMac.mm: * page/mac/WebCoreFrameBridge.h: * platform/graphics/svg/SVGImageEmptyClients.h: (WebCore::SVGEmptyChromeClient::runJavaScriptAlert): (WebCore::SVGEmptyChromeClient::runJavaScriptConfirm): (WebCore::SVGEmptyChromeClient::runJavaScriptPrompt): (WebCore::SVGEmptyChromeClient::setStatusBarText): WebKit: Reviewed by Adam. Move functions from the bridge to the chrome client. * WebCoreSupport/WebChromeClient.h: * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::runJavaScriptAlert): (WebChromeClient::runJavaScriptConfirm): (WebChromeClient::runJavaScriptPrompt): (WebChromeClient::setStatusBarText): * WebCoreSupport/WebFrameBridge.mm: git-svn-id: svn://svn.chromium.org/blink/trunk@18983 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
zack authored
git-svn-id: svn://svn.chromium.org/blink/trunk@18982 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eseidel authored
Reviewed by rwlbuis. More cleanup to SVGAnimated* classes. No tests possible (only code cleanup) * ksvg2/svg/SVGAnimateMotionElement.cpp: (WebCore::SVGAnimateMotionElement::applyAnimationToValue): * ksvg2/svg/SVGAnimateMotionElement.h: * ksvg2/svg/SVGAnimationElement.cpp: (WebCore::SVGAnimationElement::parseBeginOrEndValue): (WebCore::SVGAnimationElement::parseMappedAttribute): (WebCore::SVGAnimationElement::parseClockValue): (WebCore::SVGAnimationElement::isIndefinite): * ksvg2/svg/SVGAnimationElement.h: git-svn-id: svn://svn.chromium.org/blink/trunk@18981 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
zimmermann authored
Remove accidently commited debug output. Shame on me :-) git-svn-id: svn://svn.chromium.org/blink/trunk@18980 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
zimmermann authored
Rewrite <use> support with a real-shadow tree (as the spec demands), and implement SVGElementInstance. AFAIK we're the first implementing this SVG feature - after ASV3 (!). git-svn-id: svn://svn.chromium.org/blink/trunk@18979 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eseidel authored
Reviewed by rwlbuis. Add support for SVGMPathElement parsing. No test cases possible (SVGAnimateMotion doesn't work yet) * WebCore.xcodeproj/project.pbxproj: * ksvg2/svg/SVGAnimateMotionElement.cpp: (WebCore::SVGAnimateMotionElement::animationPath): * ksvg2/svg/SVGMPathElement.cpp: Added. (WebCore::SVGMPathElement::SVGMPathElement): (WebCore::SVGMPathElement::~SVGMPathElement): (WebCore::SVGMPathElement::parseMappedAttribute): (WebCore::SVGMPathElement::pathElement): * ksvg2/svg/SVGMPathElement.h: Added. * ksvg2/svg/SVGNumberList.cpp: (WebCore::SVGNumberList::parse): fix typo in comment * ksvg2/svg/svgtags.in: add back mpath git-svn-id: svn://svn.chromium.org/blink/trunk@18978 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eseidel authored
Reviewed by rwlbuis. Implement better parsing for keyTimes, keySplines and keyPoints. Unfortunately none of this code is used much yet, thus isn't very testable. * ksvg2/svg/SVGAnimateMotionElement.cpp: (WebCore::SVGAnimateMotionElement::parseMappedAttribute): * ksvg2/svg/SVGAnimationElement.cpp: (WebCore::SVGAnimationElement::parseKeyNumbers): (WebCore::parseKeySplines): (WebCore::SVGAnimationElement::parseMappedAttribute): * ksvg2/svg/SVGAnimationElement.h: * ksvg2/svg/SVGNumberList.cpp: (WebCore::SVGNumberList::parse): git-svn-id: svn://svn.chromium.org/blink/trunk@18977 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
lars authored
run-webkit-tests does now not generate new results by default anymore. You'll have to pass the --new-tests flag to it to force it to do so. This is required to make it possible to have tests running on multiple platforms peacefully together. git-svn-id: svn://svn.chromium.org/blink/trunk@18976 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
aroben authored
Reviewed by Beth. Fix: <rdar://problem/4939672> REGRESSION: With text selected that is not a link, the "Remove Link" contextual menu item remains active * platform/ContextMenuItem.h: Added enabled method. * platform/qt/ContextMenuItemQt.cpp: (WebCore::ContextMenuItem::enabled): Implemented. * platform/mac/ContextMenuItemMac.mm: (WebCore::ContextMenuItem::enabled): Ditto. * platform/mac/ContextMenuMac.mm: (-[WebCoreMenuTarget validateMenuItem:]): Implemented to fulfill the NSMenuValidation protocol. WebKit: Reviewed by Beth. Fix <rdar://problem/4939672> REGRESSION: With text selected that is not a link, the "Remove Link" contextual menu item remains active * WebView/WebHTMLView.mm: (-[WebHTMLView menuForEvent:]): Leave autoenabling of menu items on so that clients can implement validateMenuItem:. git-svn-id: svn://svn.chromium.org/blink/trunk@18975 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bdakin authored
Fix for <rdar://problem/4939558> REGRESSION: "Search in Google", "Search in Spotlight" and "Look up in Dictionary" are missing initially from the contextual menu The bug here is that we select the we were selecting the word after the context menu event was dispatched and after the context menu was built up. * page/EventHandler.cpp: (WebCore::EventHandler::sendContextMenuEvent): Select the word before dispatching the event. It is safe to remove the check for swallowEvent since WebCore context menus ensure that we always swallow the event anyway. git-svn-id: svn://svn.chromium.org/blink/trunk@18974 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bdash authored
Reviewed by Tim H. Fix for http://bugs.webkit.org/show_bug.cgi?id=7926 Bug 7926: Crash using -callWebScriptMethod to access offsetTop property * bindings/objc/WebScriptObject.mm: (-[WebScriptObject callWebScriptMethod:withArguments:]): Bail out early if function value is an immediate, or if the function object is not callable. git-svn-id: svn://svn.chromium.org/blink/trunk@18973 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bdash authored
Reviewed by Maciej. Patch for http://bugs.webkit.org/show_bug.cgi?id=11853 REGRESSION (r17352): Whitespace in <title> is rendered * loader/DocumentLoader.cpp: (WebCore::canonicalizedTitle): Changed to also collapse internal whitespace. This required removing an optimization that is no longer possible. * manual-tests/title-internal-whitespace.html: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@18972 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bdash authored
Reviewed by Maciej. - fix http://bugs.webkit.org/show_bug.cgi?id=12039 Assertion failure in WebCore::Font::primaryFont Test: fast/text/font-initial.html * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty): Give 'font: initial' the Standard generic family. This makes the FontDescription different from that of the initial font of a GraphicsContext, ensuring that the latter will not be used. 2007-01-18 Mitz Pettel <mitz@webkit.org> Reviewed by Maciej. - test for http://bugs.webkit.org/show_bug.cgi?id=12039 Assertion failure in WebCore::Font::primaryFont * fast/text/font-initial-expected.checksum: Added. * fast/text/font-initial-expected.png: Added. * fast/text/font-initial-expected.txt: Added. * fast/text/font-initial.html: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@18971 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bdash authored
Reviewed by Maciej. Change doctype for webkit.org/blog/ admin interface to HTML 4.01. * blog/wp-admin/admin-header.php: * blog/wp-login.php: git-svn-id: svn://svn.chromium.org/blink/trunk@18970 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bdash authored
Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=11451 REGRESSION: Dell.com does not render correctly in ToT (stylesheet not loaded) Test: http/tests/misc/css-accept-any-type.html * loader/CachedCSSStyleSheet.cpp: (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet): Changed the accept header for stylesheets to "text/css,*/*;q=0.1" to match Firefox, accepting CSS served as any type. 2007-01-18 Mitz Pettel <mitz@webkit.org> Reviewed by Darin. - test for http://bugs.webkit.org/show_bug.cgi?id=11451 REGRESSION: Dell.com does not render correctly in ToT (stylesheet not loaded) * http/tests/misc/css-accept-any-type-expected.txt: Added. * http/tests/misc/css-accept-any-type.html: Added. * http/tests/misc/resources/stylesheet.php: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@18969 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bdash authored
Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=11271 REGRESSION (r12358): Text in display: table unselectable Test: editing/selection/display-table-text.html * editing/htmlediting.cpp: (WebCore::isTableElement): Changed to return false for text nodes. 2007-01-18 Mitz Pettel <mitz@webkit.org> Reviewed by Darin. - test for http://bugs.webkit.org/show_bug.cgi?id=11271 REGRESSION (r12358): Text in display: table unselectable * editing/selection/display-table-text-expected.checksum: Added. * editing/selection/display-table-text-expected.png: Added. * editing/selection/display-table-text-expected.txt: Added. * editing/selection/display-table-text.html: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@18968 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
beidson authored
<rdar://problem/4917290> - Null deref in WebFrameLoaderClient::restoreScrollPositionAndViewState() after regaining network connection * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::restoreScrollPositionAndViewState): Bail early with a null currentItem, preventing a crash in release builds. Leave the ASSERT to help find other cases where this might happen in debug builds. git-svn-id: svn://svn.chromium.org/blink/trunk@18967 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bdash authored
Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=6218 CSS1: WebTextRenderer caches and re-uses fallback renderers that are based on family lists This patch takes character-to-glyph mapping out of FontData and instead makes each Font keep its own mapping, using a shared set of glyph page fallback trees. For each page number there is (at most) one tree. A path from the root to a node in the tree corresponds to a fallback list of FontDatas. The node points to a page (which may be shared with other nodes) that maps each character in its range to a glyph in the first FontData in the fallback list that has it, or to 0 if none of the FontDatas has a glyph for that character. A special kind of node, that can only occur as a leaf, corresponds to using system fallback fonts after the list has been exhausted. This prevents system fallback from polluting non-leaf nodes. Nodes and pages are initialized lazily and employ "copy on write". * CMakeLists.txt: * WebCore.pro: * WebCore.vcproj/WebCore/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * WebCoreSources.bkl: * platform/Font.cpp: (WebCore::WidthIterator::WidthIterator): Removed substituteFontData. (WebCore::WidthIterator::advance): Moved all character-to-glyph mapping logic out of here and replaced it with a call to Font::glyphDataForCharacter(). (WebCore::Font::Font): (WebCore::Font::operator=): (WebCore::Font::glyphDataForCharacter): Added. This method performs the lookup in the page fallback trees, triggering lazy initialization as needed, and caching pointers to the retrieved page tree nodes in the font. (WebCore::Font::update): (WebCore::Font::drawSimpleText): (WebCore::Font::floatWidth): (WebCore::Font::floatWidthForSimpleText): Removed substituteFont argument. (WebCore::Font::offsetForPositionForSimpleText): * platform/Font.h: * platform/FontData.cpp: (WebCore::FontData::FontData): * platform/FontData.h: (WebCore::FontData::missingGlyphData): Added. Returns the "missing glyph" GlyphData for this FontData. * platform/GlyphMap.cpp: Removed. * platform/GlyphMap.h: Removed. * platform/GlyphPageTreeNode.cpp: Renamed GlyphMap.cpp to this. (WebCore::GlyphPageTreeNode::getRoot): Added. Returns the root of the page fallback tree for the given page number. (WebCore::GlyphPageTreeNode::initializePage): Added. Helper method that initializes the page pointer of a node, possibly to a pointer to another node's page or to 0. (WebCore::GlyphPageTreeNode::getChild): Added. * platform/GlyphPageTreeNode.h: Renamed GlyphMap.h to this. (WebCore::GlyphPage::glyphDataForCharacter): (WebCore::GlyphPage::setGlyphDataForCharacter): (WebCore::GlyphPage::setGlyphDataForIndex): (WebCore::GlyphPageTreeNode::GlyphPageTreeNode): (WebCore::GlyphPageTreeNode::getRootChild): (WebCore::GlyphPageTreeNode::parent): (WebCore::GlyphPageTreeNode::page): (WebCore::GlyphPageTreeNode::level): (WebCore::GlyphPageTreeNode::isSystemFallback): Added. Returns whether the node corresponds to the system providing fallback fonts, which is done on a character-by-character basis. * platform/gdk/GlyphMapGdk.cpp: Removed. * platform/gdk/GlyphPageTreeNodeGdk.cpp: Renamed GlyphMapGdk.cpp to this. (WebCore::GlyphPage::fill): * platform/mac/FontDataMac.mm: (WebCore::FontData::platformInit): * platform/mac/FontMac.mm: (WebCore::Font::Font): * platform/mac/GlyphMapMac.cpp: Removed. * platform/mac/GlyphPageTreeNodeMac.cpp: Renamed GlypMapMac.cpp to this. (WebCore::GlyphPage::fill): Changed to return false if the font has no glyphs in the page. * platform/qt/GlyphMapQt.cpp: Removed. * platform/qt/GlyphPageTreeNodeQt.cpp: Renamed GlyphMapQt.cpp to this. (WebCore::GlyphPage::fill): * platform/win/GlyphMapWin.cpp: Removed. * platform/win/GlyphPageTreeNodeWin.cpp: Renamed GlyphMapWin to this. (WebCore::GlyphPage::fill): git-svn-id: svn://svn.chromium.org/blink/trunk@18966 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bdash authored
Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=9952 REGRESSION: Repro crash when dragging an image from the window to the address bar * page/FrameView.cpp: (WebCore::FrameView::~FrameView): Removed the call to Document::detach(). If this view is the current view, then the Frame should have already detached the document. Added an assertion that this is the case. If this view is not the current view, then it cannot access its document, but the page cache should have detached it already. Similarly, changed to call RenderPart::setWidget() only if this is the current view in the frame. (WebCore::FrameView::adjustViewSize): Added an assertion that this view is the current view in the frame. (WebCore::FrameView::layout): Ditto. (WebCore::FrameView::scheduleRelayout): Ditto. (WebCore::FrameView::scheduleRelayoutOfSubtree): Ditto. (WebCore::FrameView::windowClipRect): Ditto. git-svn-id: svn://svn.chromium.org/blink/trunk@18965 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eseidel authored
Reviewed by bdash. No test needed, removed bogus debug-only ASSERT. * rendering/RenderSVGContainer.cpp: (WebCore::RenderSVGContainer::paint): git-svn-id: svn://svn.chromium.org/blink/trunk@18964 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bdash authored
Reviewed by Darin. Add JavaScriptCore define to help with tracing of when objects are marked. * kjs/object.cpp: (KJS::JSObject::mark): git-svn-id: svn://svn.chromium.org/blink/trunk@18963 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
aliceli1 authored
* platform/mac/PasteboardMac.mm: (WebCore::Pasteboard::writeSelection): git-svn-id: svn://svn.chromium.org/blink/trunk@18962 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
aliceli1 authored
Fixes the leaks from my last patch, except for the first change below which is a missing delegate call for Mail purposes * editing/Editor.cpp: (WebCore::Editor::cut): * platform/Pasteboard.h: * platform/mac/PasteboardMac.mm: (WebCore::Pasteboard::Pasteboard): (WebCore::Pasteboard::clear): (WebCore::Pasteboard::writeSelection): (WebCore::Pasteboard::writeURL): (WebCore::Pasteboard::plainText): (WebCore::Pasteboard::documentFragment): git-svn-id: svn://svn.chromium.org/blink/trunk@18960 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
- 18 Jan, 2007 6 commits
-
-
kdecker authored
<rdar://problem/4939511> WebKit should set the CG clip path for plug-ins that draw using CoreGraphics * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView drawRect:]): Set the CG clip path to the plug-in dirty rect. This allows plug-ins to obtain their dirty rect using functions like CGContextGetClipBoundingBox(). git-svn-id: svn://svn.chromium.org/blink/trunk@18957 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
sullivan authored
git-svn-id: svn://svn.chromium.org/blink/trunk@18955 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
sullivan authored
- Tests for: <rdar://problem/4912002> REGRESSION: Series of words marked as a single misspelled word <rdar://problem/4462420> REGRESSION: Mail hangs during Replace All if the replacement string contains the search string * editing/spelling/spelling-expected.checksum: Added. * editing/spelling/spelling-expected.png: Added. * editing/spelling/spelling-expected.txt: Added. * editing/spelling/spelling.html: Added. * editing/execCommand/find-after-replace-expected.checksum: Added. * editing/execCommand/find-after-replace-expected.png: Added. * editing/execCommand/find-after-replace-expected.txt: Added. * editing/execCommand/find-after-replace.html: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@18953 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
hyatt authored
Make sure layer autoscrolling puts the event coordinates into the layer's coordinate space before calling hitTest on it. Fixes "flashy" selection in textareas. Reviewed by darin * rendering/RenderLayer.cpp: (WebCore::RenderLayer::autoscroll): * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::nodeAtPoint): git-svn-id: svn://svn.chromium.org/blink/trunk@18951 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
andersca authored
Get rid of ResourceLoaderMac.mm and make willCacheResponse platform-independent. * loader/ResourceLoader.cpp: (WebCore::ResourceLoader::willCacheResponse): * loader/ResourceLoader.h: * loader/mac/ResourceLoaderMac.mm: Removed. * platform/network/ResourceHandleClient.h: (WebCore::): (WebCore::ResourceHandleClient::willCacheResponse): (WebCore::ResourceHandleClient::willStopBufferingData): * platform/network/mac/ResourceHandleMac.mm: (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]): git-svn-id: svn://svn.chromium.org/blink/trunk@18950 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
darin authored
* Scripts/run-webkit-tests: Fix handling of configuration so it does the right thing when no explicit configuration is passed in. The old code assumed that the result of setConfiguration() was the configuration, but it's undefined when no configuration is explicitly passed in. The correct function to use is configuration(), and I also streamlined the code. git-svn-id: svn://svn.chromium.org/blink/trunk@18948 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-