- 13 Apr, 2008 1 commit
-
-
hyatt@apple.com authored
Memory management cleanup for the new StyleCachedImage and StyleGeneratedImage classes. Make the back end values hold refptrs to cached front end values. This will avoid malloc churn as RenderStyles get re-resolved. Reviewed by olliej * css/CSSCursorImageValue.cpp: (WebCore::CSSCursorImageValue::updateIfSVGCursorIsUsed): (WebCore::CSSCursorImageValue::cachedImage): * css/CSSCursorImageValue.h: * css/CSSImageGeneratorValue.cpp: (WebCore::CSSImageGeneratorValue::CSSImageGeneratorValue): (WebCore::CSSImageGeneratorValue::generatedImage): * css/CSSImageGeneratorValue.h: * css/CSSImageValue.cpp: (WebCore::CSSImageValue::CSSImageValue): (WebCore::CSSImageValue::~CSSImageValue): (WebCore::CSSImageValue::cachedImage): * css/CSSImageValue.h: * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyProperty): ...
-
- 11 Apr, 2008 1 commit
-
-
hyatt@apple.com authored
This patch adds support for CSS gradients as background images. RenderStyles now hold a StyleImage RefPtr, which is a wrapper for two types of images: CachedImages (loaded from URLs) and generated images (patterns created on the fly such as gradients). All of the features of <canvas> are supported: gradients can be linear or radial, have multiple stops, and can specify their points as percentages (for reusable gradients across different box sizes). Reviewed by olliej Added fast/gradients/simple-gradients.html * WebCore.xcodeproj/project.pbxproj: * css/CSSBorderImageValue.cpp: (WebCore::CSSBorderImageValue::CSSBorderImageValue): * css/CSSBorderImageValue.h: (WebCore::CSSBorderImageValue::imageValue): (WebCore::CSSBorderImageValue::generatorValue): * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSVal...
-
- 19 Mar, 2008 1 commit
-
-
hyatt@apple.com authored
New implementation of full page zoom. Because of how much doesn't transform when zooming, and because of the need to obey viewport constraints, I decided to take a completely different approach. Now CSS lengths and intrinsic sizes are simply adjusted by the zoom factor. This approach works much better and avoids pixel cracks more than the old approach. In addition widgets "just work", namely plugins zoom and scrollbars do not. This patch also implements the IE zoom CSS property. This property allows fine-grained control over zooming at the element level. It takes values of normal | <number> | <percentage> to match WinIE. In addition, in the vein of text-size-adjust for text zooming, I have extended the zoom property with an extra value, reset. The reset keyword can be used to prevent a section of the page from scaling at all when a zoom is applied. Reviewed by olliej * css/CSSComputedStyleDeclaration.cpp: (WebCore::): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Support the new 'zoom' property for getComputedStyle. * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): Code that parses the 'zoom' property. * css/CSSPrimitiveValue.cpp: (WebCore::CSSPrimitiveValue::computeLengthInt): (WebCore::CSSPrimitiveValue::computeLengthIntForLength): (WebCore::CSSPrimitiveValue::computeLengthShort): (WebCore::CSSPrimitiveValue::computeLengthFloat): (WebCore::CSSPrimitiveValue::computeLengthDouble): * css/CSSPrimitiveValue.h: Extend all of the computeLength methods to take a multiplier so that lengths can be adjusted by the zoom factor. * css/CSSPropertyNames.in: Add the new zoom property to the list of properties we understand. * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyDeclarations): (WebCore::CSSStyleSelector::applyProperty): (WebCore::CSSStyleSelector::mapBackgroundSize): (WebCore::CSSStyleSelector::mapBackgroundXPosition): (WebCore::CSSStyleSelector::mapBackgroundYPosition): (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize): * css/CSSStyleSelector.h: (WebCore::CSSStyleSelector::setStyle): Pass in the zoom factor when computing all lengths in CSS. * css/CSSValueKeywords.in: Add support for the 'reset' keyword of the zoom property. * dom/Document.cpp: (WebCore::Document::recalcStyle): Set the 'zoom' CSS property on the RenderView. This is how we implement full page zoom. * html/CanvasRenderingContext2D.cpp: (WebCore::size): Make sure the back end canvas size ignores zooming when rendering images. * html/HTMLImageElement.cpp: (WebCore::HTMLImageElement::width): (WebCore::HTMLImageElement::height): (WebCore::HTMLImageElement::naturalWidth): (WebCore::HTMLImageElement::naturalHeight): Use the unzoomed width/height if we have no style information in HTMLImageElement.cpp. * loader/CachedImage.cpp: (WebCore::CachedImage::ref): (WebCore::CachedImage::imageSize): (WebCore::CachedImage::imageRect): * loader/CachedImage.h: (WebCore::CachedImage::canRender): Force access to the CachedImage metrics to take a multiplier so that people have to think about the zoom factor. The "intrinsic size" of the image then takes that into account. * loader/ImageDocument.cpp: (WebCore::ImageTokenizer::finish): (WebCore::ImageDocument::scale): (WebCore::ImageDocument::resizeImageToFit): (WebCore::ImageDocument::imageChanged): (WebCore::ImageDocument::restoreImageSize): (WebCore::ImageDocument::imageFitsInWindow): Make sure image documents respect the zoom. * page/AnimationController.cpp: (WebCore::ImplicitAnimation::animate): Make the 'zoom' CSS property work with CSS transitions. * page/Frame.h: (WebCore::Frame::pageZoomFactor): (WebCore::Frame::textZoomFactor): Add accessors for obtaining the pageZoom vs. textZoom. * page/FrameView.cpp: (WebCore::FrameView::adjustViewSize): Remove the old zoom implementation that used transforms. * page/mac/WebCoreAXObject.mm: (-[WebCoreAXObject accessibilityIsIgnored]): Pass in the zoom factor. * rendering/InlineFlowBox.cpp: (WebCore::InlineFlowBox::paintBackground): (WebCore::InlineFlowBox::paintBoxDecorations): Pass in the zoom factor when testing for size. * rendering/RenderBox.cpp: (WebCore::RenderBox::calculateBackgroundSize): (WebCore::RenderBox::imageChanged): (WebCore::RenderBox::paintBackgroundExtended): (WebCore::RenderBox::calcHeight): * rendering/RenderFrameSet.cpp: (WebCore::RenderFrameSet::layout): * rendering/RenderHTMLCanvas.cpp: (WebCore::RenderHTMLCanvas::canvasSizeChanged): * rendering/RenderHTMLCanvas.h: (WebCore::RenderHTMLCanvas::renderName): (WebCore::RenderHTMLCanvas::intrinsicSizeChanged): * rendering/RenderImage.cpp: (WebCore::RenderImage::setImageSizeForAltText): (WebCore::RenderImage::imageChanged): (WebCore::RenderImage::calcReplacedWidth): (WebCore::RenderImage::calcReplacedHeight): * rendering/RenderImage.h: (WebCore::RenderImage::intrinsicSizeChanged): * rendering/RenderListMarker.cpp: (WebCore::RenderListMarker::layout): (WebCore::RenderListMarker::imageChanged): (WebCore::RenderListMarker::getRelativeMarkerRect): * rendering/RenderObject.cpp: (WebCore::RenderObject::mustRepaintBackgroundOrBorder): (WebCore::RenderObject::paintBorder): Pass in the zoom factor when testing for size. * rendering/RenderReplaced.cpp: (WebCore::RenderReplaced::RenderReplaced): (WebCore::RenderReplaced::setStyle): (WebCore::RenderReplaced::intrinsicSizeChanged): * rendering/RenderReplaced.h: Added a new call when the zoom factor changes, intrinsicSizeChanged(). Replaced element subclasses respond to this via overrides. * rendering/RenderStyle.cpp: (WebCore::StyleVisualData::StyleVisualData): (WebCore::StyleInheritedData::StyleInheritedData): (WebCore::StyleInheritedData::operator==): (WebCore::RenderStyle::diff): * rendering/RenderStyle.h: (WebCore::StyleVisualData::operator==): (WebCore::RenderStyle::zoom): (WebCore::RenderStyle::zoomInEffect): (WebCore::RenderStyle::setZoom): (WebCore::RenderStyle::setZoomInEffect): (WebCore::RenderStyle::initialZoom): Support for 'zoom' in the RenderStyle. "zoomInEffect" represents the computed zoom taking into account all the zooms specified on ancestors. * rendering/RenderTableCol.cpp: (WebCore::RenderTableCol::imageChanged): * rendering/RenderTableRow.cpp: (WebCore::RenderTableRow::imageChanged): * rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::imageChanged): * rendering/RenderVideo.h: (WebCore::RenderVideo::intrinsicSizeChanged): Pass in the zoom factor. * rendering/RenderView.cpp: (WebCore::RenderView::calcHeight): (WebCore::RenderView::calcWidth): (WebCore::RenderView::layout): (WebCore::RenderView::viewHeight): (WebCore::RenderView::viewWidth): * rendering/RenderView.h: (WebCore::RenderView::zoomFactor): Back out the old implementation. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31155 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 10 Mar, 2008 1 commit
-
-
darin@apple.com authored
- fix <rdar://problem/3059610> VIP: links opened in new frame, window, or tab should be redrawn as visited immediately - fix <rdar://problem/4382809> Going "back" a page doesn't change the color of the visited URL at directory.umi - fix http://bugs.webkit.org/show_bug.cgi?id=4941 Visited links should be marked as visited - fix http://bugs.webkit.org/show_bug.cgi?id=7960 REGRESSION: Visited link color doesn't displayed after loading page from cache We now mark all links on a page as "changed" at the appropriate times. * WebCore.base.exp: Update since I made completeURL be a const member function. * css/CSSStyleSelector.cpp: Got rid of some unneeded globals that could be turned into locals. Also changed some static data members to file-scoped globals with internal linkage. Renamed the globals to get rid of the m_ prefix. Changed the prefix on m_styleNotYetAvailable to s_styleNotYetAvailable. (WebCore::CSSStyleSelector::CSSStyleSelector): Updated for name changes. (WebCore::parseUASheet): Tweak the comment. (WebCore::CSSStyleSelector::loadDefaultStyle): Updated for name changes and to use local variables instead of globals where possible. (WebCore::CSSStyleSelector::checkPseudoState): Made this a member function so it can store the link in a hash. Also changed it to have a return value instead of having it modify a global variable. Added code to put the hash into a set so we can tell later if this is one of the links that affects this page. (WebCore::CSSStyleSelector::canShareStyleWithElement): Updated for the change to checkPseudoState. (WebCore::CSSStyleSelector::matchUARules): Updated for name changes. (WebCore::CSSStyleSelector::styleForElement): Ditto. (WebCore::CSSStyleSelector::adjustRenderStyle): Ditto. (WebCore::CSSStyleSelector::pseudoStyleRulesForElement): Changed code to read the SVG style sheet to use a boolean global and put it right here in the function since this is the only code that needs to know about it. (WebCore::CSSStyleSelector::checkOneSelector): Updated for name changes. (WebCore::colorForCSSValue): Moved code inside the function that is not needed anywhere else. (WebCore::CSSStyleSelector::getColorFromPrimitiveValue): Updaed for the change to checkPseudoState. (WebCore::CSSStyleSelector::allVisitedStateChanged): Added. Calls setChanged on all links if there were any in the set. (WebCore::CSSStyleSelector::visitedStateChanged): Added. Calls setChanged on all links if the one that changed is in the set. * css/CSSStyleSelector.h: Removed unused StyleSelector class and State enum. Made CSSStyleSelector derive from Noncopyable. Made lots of member functions private that didn't need to be public, and removed others that could be made into non-member functions. Changed pseudoStyleRulesForElement to take a const String& instead of a StringImpl*. Added new allVisitedStateChanged and visitedStateChanged functions. Got rid of unneeded friend declarations. * dom/Document.cpp: (WebCore::Document::completeURL): Made const. (WebCore::findSlashDotDotSlash): Moved here from PageGroup. (WebCore::findSlashSlash): Ditto. (WebCore::findSlashDotSlash): Ditto. (WebCore::containsColonSlashSlash): (WebCore::cleanPath): Ditto. (WebCore::matchLetter): Ditto. (WebCore::needsTrailingSlash): Ditto. (WebCore::Document::visitedLinkHash): Moved this here from PageGroup. This is the poor-man's completeURL function. The idea of putting it here is that this way it can be alongside the real completeURL function. Later we should figure out a way to make this function share more code with the real thing and match behavior. * dom/Document.h: Marked completeURL function const. Added visitedLinkHash function. * page/DOMWindow.cpp: (WebCore::DOMWindow::getMatchedCSSRules): Updated for change to CSSStyleSelector. * page/Page.cpp: (WebCore::Page::allVisitedStateChanged): Added. Calls allVisitedStateChanged on all style selectors. (WebCore::Page::visitedStateChanged): Ditto. * page/Page.h: Added the above functions. * page/PageGroup.cpp: (WebCore::PageGroup::isLinkVisited): Changed to take a visitedLinkHash parameter. The CSSStyleSelector now handles actually computing the hash, and it does so by calling code in Document. (WebCore::PageGroup::addVisitedLink): Refactored so the two overloaded copies share a bit more code. Added code that calls visitedStateChanged if a new link was added. (WebCore::PageGroup::removeVisitedLinks): Added code to call allVisitedStateChanged if any visited links are removed. * page/PageGroup.h: Include StringHash.h instead of having the AlreadyHashed struct definition here. * platform/text/StringHash.h: (WebCore::CaseFoldingHash::hash): Tweaked to make this a bit more consistent with the StringImpl::computeHash function, using the same technique for avoiding 0. (WebCore::AlreadyHashed::hash): Added. Was formerly in PageGroup.h. (WebCore::AlreadyHashed::avoidDeletedValue): Added. Was formerly in PageGroup.cpp. * rendering/RenderStyle.cpp: (WebCore::RenderStyle::isStyleAvailable): Changed to use an inline function instead of getting directly at a data member so the data member could be made private. * loader/FrameLoader.cpp: (WebCore::FrameLoader::scrollToAnchor): Added call to updateHistoryForAnchorScroll. (WebCore::FrameLoader::updateHistoryForAnchorScroll): Added. * loader/FrameLoader.h: Added updateHistoryForAnchorScroll. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30949 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 06 Mar, 2008 1 commit
-
-
darin@apple.com authored
Reviewed by Mitz. - fix http://bugs.webkit.org/show_bug.cgi?id=17526 REGRESSION: iframes are added to Safari's History menu by separating the visited link machinery from global history This should also make page loading faster due to more efficient visited link coloring. * WebCore.base.exp: Updated. * WebCore.vcproj/WebCore.vcproj: Added PageGroup.h/cpp, removed GlobalHistory.h/cpp. * WebCore.xcodeproj/project.pbxproj: Ditto. Also removed WebCoreHistory.h/m. * css/CSSStyleSelector.cpp: Updated includes. (WebCore::CSSStyleSelector::initElementAndPseudoState): Eliminated code to set currentEncodedURL. (WebCore::checkPseudoState): Moved most of the code inside a new PageGroup::isLinkVisited function. (WebCore::CSSStyleSelector::canShareStyleWithElement): Tightened code a bit by using references and only getting colors when needed. (WebCore::CSSStyleSelector::getColorFromPrimitiveValue): Ditto. * css/CSSStyleSelector.h: Removed EncodedURL, m_encodedURL, and setEncodedURL. * dom/Document.cpp: (WebCore::Document::attach): Removed call to setEncodedURL. (WebCore::Document::setURL): Ditto. (WebCore::Document::recalcStyleSelector): Ditto. * loader/FrameLoader.cpp: (WebCore::FrameLoader::addBackForwardItemClippedAtTarget): Changed code to use early exit idiom to be a little more readable. (WebCore::FrameLoader::urlsMatchItem): Change to use a reference for slightly better efficiency. (WebCore::FrameLoader::goToItem): Use early exit idiom to be a little more readable. (WebCore::FrameLoader::updateHistoryForStandardLoad): Moved history code back in here and got rid of the helper function updateGlobalHistory, restoring the logic before r30549. Also added a call to the new addVisitedLink function. (WebCore::FrameLoader::updateHistoryForClientRedirect): Added code to call addVisitedLink here. (WebCore::FrameLoader::updateHistoryForBackForwardNavigation): Removed comment. (WebCore::FrameLoader::updateHistoryForReload): Removed call to updateGlobalHistory; we can just go without updating global history or visited links here, at least for now, since it's not clear that a reload is a "history event". (WebCore::FrameLoader::updateHistoryForRedirectWithLockedHistory): Moved history code back where it was, and added the call to addVisitedLink, just as in updateHistoryForStandardLoad above. * loader/FrameLoader.h: Removed updateGlobalHistory function. * page/Chrome.cpp: (WebCore::ChromeClient::populateVisitedLinks): Added. Empty placeholder so we don't have to implement this for every port all at once. (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer): Changed to use the new PageGroup class. * page/ChromeClient.h: Added populateVisitedLinks function, used to fill the visited links set from the global history at application startup time. * page/FrameTree.cpp: (WebCore::FrameTree::find): Updated to use the new PageGroup class. * page/GlobalHistory.h: Removed. * page/win/GlobalHistoryWin.cpp: Removed. * page/mac/GlobalHistoryMac.mm: Removed. * platform/mac/WebCoreHistory.h: Removed. * platform/mac/WebCoreHistory.m: Removed. * platform/win/WebCoreHistory.cpp: Removed. * platform/win/WebCoreHistory.h: Removed. * page/Page.cpp: (WebCore::Page::Page): Set m_group to 0. (WebCore::Page::setGroupName): Set up m_group. If the page is not in any group, set it to 0 for now to postpone the cost of creating a group. (WebCore::Page::initGroup): Added. Sets m_group to point to a single-page group; used when getting a group. (WebCore::Page::removeAllVisitedLinks): Added. Calls removeVisitedLinks on all page groups. * page/Page.h: Moved enums inside the WebCore namespace. Removed the frameNamespace function and instead added the group and groupPtr functions. * page/PageGroup.cpp: Added. Contains all the visited code from the CSSStyleSelector in the isVisitedLink function, but more efficient because we don't allocate memory for the buffer. * page/PageGroup.h: Added. * platform/gtk/TemporaryLinkStubs.cpp: Removed historyContains. * platform/qt/TemporaryLinkStubs.cpp: Removed unneeded include. * platform/wx/TemporaryLinkStubs.cpp: Removed historyContains. WebKit: * WebKit.xcodeproj/project.pbxproj: Added WebHistoryInternal.h. WebKit/mac: Reviewed by Mitz. - fix http://bugs.webkit.org/show_bug.cgi?id=17526 REGRESSION: iframes are added to Safari's History menu by separating the visited link machinery from global history * History/WebHistory.mm: Moved WebHistoryPrivate inside this file. (-[WebHistoryPrivate removeItemFromDateCaches:]): Removed the underscore from this method name, since it's on a private object. (-[WebHistoryPrivate removeItemForURLString:]): Added a call to the PageGroup::removeAllVisitedLinks function if the last URL was removed. (-[WebHistoryPrivate addItemToDateCaches:]): Removed the underscore from this method name, since it's on a private object. (-[WebHistoryPrivate removeAllItems]): Call PageGroup::removeAllVisitedLinks. (-[WebHistoryPrivate ageLimitDate]): Removed the underscore from this method name, since it's on a private object. (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]): Ditto. (-[WebHistoryPrivate saveHistoryGuts:URL:error:]): Ditto. Also changed this to correctly return the error by using the newer version of writeToURL: and removed the FIXME about that. (-[WebHistoryPrivate addVisitedLinksToPageGroup:]): Added. Calls addVisitedLink for every link in the history. (-[WebHistory saveToURL:error:]): Removed the FIXME, since we do get the error now. (-[WebHistory addItem:]): Moved into the WebPrivate category. (-[WebHistory addItemForURL:]): Ditto. (-[WebHistory _addItemForURL:title:]): Added. Used for the normal case where we create an item and already know its title. (-[WebHistory ageLimitDate]): Moved into the WebPrivate category. (-[WebHistory containsItemForURLString:]): Ditto. (-[WebHistory removeItem:]): Ditto. (-[WebHistory setLastVisitedTimeInterval:forItem:]): Ditto. (-[WebHistory _itemForURLString:]): Ditto. (-[WebHistory _addVisitedLinksToPageGroup:]): Added. For use only inside WebKit. * History/WebHistoryInternal.h: Added. * History/WebHistoryItemInternal.h: Tweaked formatting and includes. * History/WebHistoryPrivate.h: Moved the WebHistoryPrivate class out of this header. Also reorganized what was left behind. * WebCoreSupport/WebChromeClient.h: Added populateVisitedLinks. * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::populateVisitedLinks): Added a call to the new -[WebHistory _addVisitedLinksToPageGroup:] method. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::updateGlobalHistory): Changed code to use the new -[WebHistory _addItemForURL:title:] method. WebKit/win: Reviewed by Mitz. - fix http://bugs.webkit.org/show_bug.cgi?id=17526 REGRESSION: iframes are added to Safari's History menu by separating the visited link machinery from global history * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::populateVisitedLinks): Added a call to the new WebHistory::addVisitedLinksToPageGroup function. * WebCoreSupport/WebChromeClient.h: Added populateVisitedLinks. Also fixed the webView function to be non-virtual. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::updateGlobalHistory): Changed to use the new WebHistory::addItem function. (WebFrameLoaderClient::webHistory): Changed to return a WebHistory*, there's no reason to AddRef the result from this function. * WebCoreSupport/WebFrameLoaderClient.h: Ditto. * WebHistory.cpp: Removed IWebHistoryPrivate and _WebCoreHistoryProvider. (WebHistory::QueryInterface): Removed IWebHistoryPrivate. (sharedHistoryStorage): Added. (WebHistory::sharedHistory): Added. (WebHistory::optionalSharedHistory): Changed to use sharedHistory(). (WebHistory::setOptionalSharedHistory): Changed to require a WebHistory object, not just an IWebHistory. (WebHistory::removeAllItems): Call PageGroup::removeAllVisitedLinks. (WebHistory::addItem): Changed parameter types since this is called with arguments from WebCore -- at some point this could allow better efficiency. (WebHistory::removeItemForURLString): Call PageGroup::removeAllVisitedLinks if the last URL is being removed. (addVisitedLinkToPageGroup): Added. Helper. Adds a single link to a group's visited link set. (WebHistory::addVisitedLinksToPageGroup): Added. Adds all links to a group's visited link. * WebHistory.h: Removed IWebHistoryPrivate. Removed optionalSharedHistoryInternal and added sharedHistory. Replaced addItemForURL and containsItemForURLString with non-virtual addItem and addVisitedLinksToPageGroup functions. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30840 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 21 Feb, 2008 1 commit
-
-
hyatt@apple.com authored
when contained in documents inside iframes (rather than always using the top-level document's viewport). CSS media queries based on the viewport also needed to be dynamic and update as you resize the window (this is a HOT feature). :) This patch gets Acid3 up to 86/100 with 3 colored boxes filled in. Reviewed by olliej Added fast/media/viewport-media-query.html * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::CSSStyleSelector): (WebCore::CSSStyleSelector::addViewportDependentMediaQueryResult): (WebCore::CSSStyleSelector::affectedByViewportChange): * css/CSSStyleSelector.h: (WebCore::MediaQueryResult::MediaQueryResult): * css/MediaQueryEvaluator.cpp: (WebCore::MediaQueryEvaluator::MediaQueryEvaluator): (WebCore::MediaQueryEvaluator): (WebCore::MediaQueryEvaluator::eval): (WebCore::colorMediaFeatureEval): (WebCore::monochromeMediaFeatureEval): (WebCore::device_aspect_ratioMediaFeatureEval): (WebCore::device_pixel_ratioMediaFeatureEval): (WebCore::gridMediaFeatureEval): (WebCore::device_heightMediaFeatureEval): (WebCore::device_widthMediaFeatureEval): (WebCore::heightMediaFeatureEval): (WebCore::widthMediaFeatureEval): (WebCore::min_colorMediaFeatureEval): (WebCore::max_colorMediaFeatureEval): (WebCore::min_monochromeMediaFeatureEval): (WebCore::max_monochromeMediaFeatureEval): (WebCore::min_device_aspect_ratioMediaFeatureEval): (WebCore::max_device_aspect_ratioMediaFeatureEval): (WebCore::min_device_pixel_ratioMediaFeatureEval): (WebCore::max_device_pixel_ratioMediaFeatureEval): (WebCore::min_heightMediaFeatureEval): (WebCore::max_heightMediaFeatureEval): (WebCore::min_widthMediaFeatureEval): (WebCore::max_widthMediaFeatureEval): (WebCore::min_device_heightMediaFeatureEval): (WebCore::max_device_heightMediaFeatureEval): (WebCore::min_device_widthMediaFeatureEval): (WebCore::max_device_widthMediaFeatureEval): * css/MediaQueryEvaluator.h: * css/MediaQueryExp.cpp: (WebCore::MediaQueryExp::~MediaQueryExp): * css/MediaQueryExp.h: (WebCore::MediaQueryExp::value): (WebCore::MediaQueryExp::isViewportDependent): * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::pickMedia): * page/FrameView.cpp: (WebCore::FrameView::layout): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30466 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 15 Feb, 2008 1 commit
-
-
weinig@apple.com authored
Remove more uses of DeprecatedString in preparation of getting rid of it. * bridge/mac/WebCoreScriptDebugger.mm: * css/CSSCursorImageValue.cpp: (WebCore::isSVGCursorIdentifier): (WebCore::CSSCursorImageValue::updateIfSVGCursorIsUsed): * css/CSSStyleSelector.h: * dom/Element.cpp: (WebCore::Element::dump): (WebCore::Element::formatForDebugger): * dom/Position.cpp: (WebCore::Position::debugPosition): (WebCore::Position::formatForDebugger): * dom/Range.cpp: (WebCore::Range::formatForDebugger): * dom/Text.cpp: (WebCore::Text::formatForDebugger): * editing/Selection.cpp: (WebCore::Selection::debugPosition): (WebCore::Selection::formatForDebugger): * editing/SelectionController.cpp: (WebCore::SelectionController::debugRenderer): * editing/VisiblePosition.cpp: (WebCore::VisiblePosition::debugPosition): * html/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::scriptHandler): (WebCore::HTMLTokenizer::parseTag): (WebCore::HTMLTokenizer::processToken): (WebCore::HTMLTokenizer::notifyFinished): * svg/SVGFontFaceElement.cpp: (WebCore::mapAttributeToCSSProperty): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30293 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 14 Feb, 2008 1 commit
-
-
darin@apple.com authored
Reviewed by Eric Seidel. Based on work by Marvin Decker <marv.decker@gmail.com> - fix http://bugs.webkit.org/show_bug.cgi?id=16538 KURL should use String instead of DeprecatedString - fix http://bugs.webkit.org/show_bug.cgi?id=16485 DocLoader::checkForReload will crash if the URL isNull and a similar problem in IconDatabase - fix http://bugs.webkit.org/show_bug.cgi?id=16487 KURL doesn't preserve isNull when constructed with a DeprecatedString - changed completeURL and various DOM getters to return KURL, to avoid conversion back and forth from KURL to String - changed the conversion of KURL to NSURL or NSString to be automatic, to ease the use of KURL in Objective C DOM bindings, and eliminated the getNSURL function - because I had to visit the DOM bindings anyway, eliminated almost all the use of the KJS namespace for things in WebCore - fixed HTMLOptionElement constructor to check for undefined rather than size of the arguments array - eliminated some other unnecessary uses of DeprecatedString - changed String::split to take a Vector parameter instead of returning a Vector, for better performance - added a couple of missing calls to do layout in SVG image handling; I was able to reproduce these only because I had broken URLs for a while -- not sure how to reproduce them now but the changes are clearly needed Performance testing shows this to be at least a 1% speedup. Added a new function protocolIs to efficiently compare protocols without case errors and a blankURL function so we don't have to code "about:blank" in multiple places in the code and don't have to construct a frash KURL each time. Moved decode_string and encode_string out of KURL and gave them clearer names. Made KURL constructors explicit to highlight potentially-expensive operations and the poor semantics of KURL's constructor that takes a String. * WebCore.base.exp: Updated. * bindings/js/JSAttrCustom.cpp: (WebCore::JSAttr::setValue): Use protocolIs. * bindings/js/JSAudioConstructor.h: KJS namespace change. * bindings/js/JSCSSRuleCustom.cpp: (WebCore::toJS): Ditto. * bindings/js/JSCSSValueCustom.cpp: (WebCore::toJS): Ditto. * bindings/js/JSDocumentCustom.cpp: (WebCore::JSDocument::location): Ditto. (WebCore::JSDocument::setLocation): Updated for KURL change. (WebCore::toJS): KJS namespace change. * bindings/js/JSElementCustom.cpp: (WebCore::allowSettingSrcToJavascriptURL): Use protocolIs. (WebCore::JSElement::setAttribute): KJS namespace change. (WebCore::JSElement::setAttributeNode): Ditto. (WebCore::JSElement::setAttributeNS): Ditto. (WebCore::JSElement::setAttributeNodeNS): Ditto. * bindings/js/JSHTMLFrameElementCustom.cpp: (WebCore::allowSettingJavascriptURL): Use protocolIs. (WebCore::JSHTMLFrameElement::setSrc): KJS namespace change. (WebCore::JSHTMLFrameElement::setLocation): Ditto. * bindings/js/JSHTMLIFrameElementCustom.cpp: (WebCore::JSHTMLIFrameElement::setSrc): Use protocolIs. * bindings/js/JSHTMLOptionElementConstructor.cpp: (WebCore::JSHTMLOptionElementConstructor::JSHTMLOptionElementConstructor): (WebCore::JSHTMLOptionElementConstructor::construct): Cleaned up the structure a bit and changed checking to check for undefined rather than number of arguments. * bindings/js/JSHTMLOptionElementConstructor.h: KJS namespace change. * bindings/js/JSLocation.cpp: (WebCore::JSLocation::put): Eliminated some DeprecatedString use, and use protocolIs. (WebCore::jsLocationProtoFuncReplace): Ditto. (WebCore::jsLocationProtoFuncReload): Ditto. (WebCore::jsLocationProtoFuncAssign): Ditto. * bindings/js/JSLocation.h: KJS namespace change. * bindings/js/JSNamedNodeMapCustom.cpp: (WebCore::JSNamedNodeMap::canGetItemsForName): Ditto. (WebCore::JSNamedNodeMap::nameGetter): Ditto. * bindings/js/JSNamedNodesCollection.cpp: (WebCore::JSNamedNodesCollection::JSNamedNodesCollection): Ditto. * bindings/js/JSNamedNodesCollection.h: Ditto. * bindings/js/JSXMLHttpRequest.cpp: (WebCore::jsXMLHttpRequestPrototypeFunctionOpen): Removed DeprecatedString use. (WebCore::jsXMLHttpRequestPrototypeFunctionSend): Ditto. * bindings/js/JSXMLHttpRequest.h: Moved this class into the WebCore namespace. * bindings/js/JSXSLTProcessor.cpp: Namespace change. * bindings/js/JSXSLTProcessor.h: Ditto. * bindings/js/kjs_binding.cpp: Updated for namespace change. (WebCore::jsStringOrNull): Added an overload for KURL to allow DOM classes to return KURL even if the DOM expects a string. (WebCore::jsStringOrUndefined): Ditto. (WebCore::jsStringOrFalse): Ditto. * bindings/js/kjs_binding.h: Moved everything into the WebCore namespace. * bindings/js/kjs_css.h: Namespace change. * bindings/js/kjs_events.cpp: Removed an include. * bindings/js/kjs_events.h: Namespace change. * bindings/js/kjs_html.h: Namespace change. * bindings/js/kjs_navigator.cpp: Moved everything into the WebCore namespace. * bindings/js/kjs_navigator.h: Ditto. * bindings/js/kjs_window.cpp: (KJS::parseModalDialogFeatures): Updated for String::split change. (KJS::createWindow): Use protocolIs and removed some DeprecatedString. (KJS::Window::put): Ditto. (KJS::Window::allowsAccessFrom): Ditto. (KJS::windowProtoFuncOpen): Ditto. * bindings/objc/DOM.mm: (-[DOMElement _getURLAttribute:]): Removed getNSURL call. * bindings/objc/DOMHTML.mm: (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]): Ditto. * bindings/scripts/CodeGeneratorCOM.pm: Updated includes so conversions from KURL will work. * bindings/scripts/CodeGeneratorJS.pm: Updated for namespace changes, and also updated includes so conversions from KURL will work. * bindings/scripts/CodeGeneratorObjC.pm: Updated includes so conversions from KURL will work. * bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject accessibilityAttributeValue:]): Removed getNSURL call. Also streamlined the logic. (AXAttributedStringAppendText): Ditto. * bridge/mac/WebCoreScriptDebugger.mm: (toNSString): Tweaked. (toNSURL): Removed getNSURL call. * css/CSSImageValue.cpp: (WebCore::CSSImageValue::image): Removed DeprecatedString use. * css/CSSImportRule.cpp: (WebCore::CSSImportRule::insertedIntoParent): Ditto. * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): Ditto. (WebCore::CSSParser::parseContent): Ditto. (WebCore::CSSParser::parseBackgroundImage): Ditto. (WebCore::CSSParser::parseFontFaceSrc): Ditto. (WebCore::CSSParser::parseBorderImage): Ditto. * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::setEncodedURL): Ditto. (WebCore::checkPseudoState): Ditto. * css/CSSStyleSelector.h: Ditto. * css/MediaList.cpp: (WebCore::MediaList::setMediaText): Updated for String::split change. * css/StyleBase.cpp: (WebCore::StyleBase::baseURL): Return KURL. * css/StyleBase.h: DItto. * dom/Document.cpp: (WebCore::Document::~Document): Updated for namespace change. (WebCore::Document::documentURI): Return KURL. (WebCore::Document::setDocumentURI): Removed DeprecatedString use. (WebCore::Document::baseURI): Return KURL. (WebCore::Document::open): Updated to use blankURL. (WebCore::Document::setURL): Take KURL. (WebCore::Document::shouldBeAllowedToLoadLocalResources): Updated for change to use KURL (WebCore::Document::setBaseURL): Take KURL. (WebCore::Document::elementSheet): Updated for KURL change. (WebCore::Document::mappedElementSheet): Ditto. (WebCore::Document::processHttpEquiv): Ditto. (WebCore::Document::recalcStyleSelector): Removed use of DeprecatedString -- also noticed some dead code here! (WebCore::Document::setCookie): Ditto. (WebCore::Document::completeURL): Return KURL. * dom/Document.h: Use KURL instead of String in a few places. * dom/DocumentType.cpp: (WebCore::DocumentType::baseURI): Return KURL. * dom/DocumentType.h: Ditto. * dom/Element.cpp: (WebCore::Element::baseURI): Return KURL. * dom/Element.h: Ditto. * dom/Node.cpp: (WebCore::Node::setDocument): Namespace change. (WebCore::Node::baseURI): Return KURL. * dom/Node.h: Ditto. * dom/ProcessingInstruction.cpp: (WebCore::ProcessingInstruction::checkStyleSheet): Updated for KURL change. * dom/StyleElement.cpp: (WebCore::StyleElement::process): Changed to use Vector<UChar> instead of String for better performance. (WebCore::StyleElement::createSheet): Removed use of DeprecateString. * dom/XMLTokenizer.cpp: (WebCore::XMLTokenizer::endElementNs): Updated for KURL change. (WebCore::XMLTokenizer::end): Ditto. (WebCore::xmlDocPtrForString): Removed use of DeprecateString. * dom/XMLTokenizer.h: Ditto. * editing/markup.cpp: Moved appendString to PlatformString.h. (WebCore::appendQuotedURLAttributeValue): Use protocolIs. (WebCore::completeURLs): Removed DeprecatedString use. (WebCore::createFragmentFromMarkup): Use blankURL. (WebCore::fillContainerFromString): Removed DeprecatedString use. (WebCore::createFragmentFromText): Ditto. * history/HistoryItem.cpp: (WebCore::HistoryItem::url): Removed DeprecatedString use. (WebCore::HistoryItem::originalURL): Ditto. * history/HistoryItem.h: Removed include. * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::defaultEventHandler): Removed use of DeprecatedString. (WebCore::HTMLAnchorElement::href): Return KURL. (WebCore::HTMLAnchorElement::hash): Removed DeprecatedString use. (WebCore::HTMLAnchorElement::host): Ditto. (WebCore::HTMLAnchorElement::hostname): Ditto. (WebCore::HTMLAnchorElement::pathname): Ditto. (WebCore::HTMLAnchorElement::port): Ditto. (WebCore::HTMLAnchorElement::protocol): Ditto. (WebCore::HTMLAnchorElement::search): Ditto. (WebCore::HTMLAnchorElement::toString): Ditto. * html/HTMLAnchorElement.h: Ditto. * html/HTMLAppletElement.cpp: (WebCore::HTMLAppletElement::createRenderer): Updated for KURL change. * html/HTMLAreaElement.cpp: (WebCore::HTMLAreaElement::href): Return KURL. * html/HTMLAreaElement.h: Ditto. * html/HTMLBaseElement.cpp: (WebCore::HTMLBaseElement::removedFromDocument): Updated for KURL change. (WebCore::HTMLBaseElement::process): Removed DeprecatedString use. * html/HTMLBodyElement.cpp: (WebCore::HTMLBodyElement::parseMappedAttribute): Updated for KURL change. * html/HTMLEmbedElement.cpp: (WebCore::HTMLEmbedElement::parseMappedAttribute): Removed use of DeprecatedString. * html/HTMLEmbedElement.h: Removed DeprecatedString use. * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::formWouldHaveSecureSubmission): Use protocolIs. (WebCore::encodeCString): Updated for change to String::split. (WebCore::HTMLFormElement::dataEncoding): Ditto. (WebCore::HTMLFormElement::formData): Removed DeprecatedString use. (WebCore::HTMLFormElement::isMailtoForm): Use protocolIs. (WebCore::HTMLFormElement::submit): Updated for KURL change. (WebCore::HTMLFormElement::reset): Ditto. * html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::isURLAllowed): Updated for KURL change and use equalIgnoringRef instead of doing a setRef to get the same effect. (WebCore::HTMLFrameElementBase::openURL): Use blankURL. (WebCore::HTMLFrameElementBase::location): Return KURL. (WebCore::HTMLFrameElementBase::src): Return KURL. * html/HTMLFrameElementBase.h: Ditto. * html/HTMLImageElement.cpp: (WebCore::HTMLImageElement::parseMappedAttribute): Updated for KURL change. (WebCore::HTMLImageElement::longDesc): Return KURL. (WebCore::HTMLImageElement::lowsrc): Return KURL. (WebCore::HTMLImageElement::src): Return KURL. * html/HTMLImageElement.h: Ditto. Also removed imageMap() function. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::src): Return KURL. * html/HTMLInputElement.h: Ditto. * html/HTMLLinkElement.cpp: (WebCore::HTMLLinkElement::parseMappedAttribute): Updated for KURL change. (WebCore::HTMLLinkElement::tokenizeRelAttribute): Updated for String::split change. (WebCore::HTMLLinkElement::href): Return KURL. * html/HTMLLinkElement.h: Ditto. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::src): Return KURL. (WebCore::HTMLMediaElement::pickMedia): Updated for KURL change. * html/HTMLMediaElement.h: Ditto. * html/HTMLObjectElement.cpp: (WebCore::HTMLObjectElement::isImageType): Use protocolIs. (WebCore::HTMLObjectElement::data): Return KURL. * html/HTMLObjectElement.h: Ditto. * html/HTMLOptGroupElement.cpp: (WebCore::HTMLOptGroupElement::groupLabelText): Removed DeprecatedString use. * html/HTMLParser.cpp: (WebCore::HTMLParser::reportErrorToConsole): Updated for KURL change. * html/HTMLScriptElement.cpp: (WebCore::HTMLScriptElement::insertedIntoDocument): Ditto. (WebCore::HTMLScriptElement::text): Changed to use Vector<UChar> instead of String for better performance. (WebCore::HTMLScriptElement::src): Return KURL. * html/HTMLScriptElement.h: Ditto. * html/HTMLSourceElement.cpp: (WebCore::HTMLSourceElement::src): Return KURL. * html/HTMLSourceElement.h: Ditto. * html/HTMLTableElement.cpp: (WebCore::HTMLTableElement::parseMappedAttribute): Updated for KURL change. * html/HTMLTablePartElement.cpp: (WebCore::HTMLTablePartElement::parseMappedAttribute): Updated for KURL change. * html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::setValue): Removed DeprecatedString use. * html/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::scriptExecution): Ditto. (WebCore::HTMLTokenizer::notifyFinished): Use protocolIs. * html/HTMLVideoElement.cpp: (WebCore::HTMLVideoElement::poster): Return KURL. * html/HTMLVideoElement.h: Ditto. * html/HTMLViewSourceDocument.cpp: (WebCore::HTMLViewSourceDocument::addText): Updated for String::split change. * loader/DocLoader.cpp: (WebCore::DocLoader::checkForReload): Add an explicit check for an empty URL here to avoid problems using its string as a hash table key later. (WebCore::DocLoader::requestResource): Removed DeprecatedString use. * loader/FTPDirectoryDocument.cpp: (WebCore::FTPDirectoryTokenizer::createTDForFilename): Updated for KURL change. (WebCore::FTPDirectoryTokenizer::parseAndAppendOneLine): Removed use of DeprecatedString. * loader/FrameLoader.cpp: (WebCore::FrameLoader::requestFrame): Use protocolIs. (WebCore::FrameLoader::loadSubframe): Use blankURL. (WebCore::FrameLoader::submitForm): Use protocolIs and removed use of DeprecatedString. (WebCore::FrameLoader::iconURL): Return KURL. Use protcolIs. (WebCore::FrameLoader::didOpenURL): Use protocolIs. (WebCore::FrameLoader::didExplicitOpen): Use blankURL. (WebCore::FrameLoader::executeIfJavaScriptURL): Use protocolIs. Update for name change to decodeURLEscapeSequences. (WebCore::FrameLoader::receivedFirstData): Updated for KURL changes. (WebCore::FrameLoader::begin): Removed DeprecatedString use. Renamed baseurl to baseURL. Updated to use KURL more. (WebCore::FrameLoader::gotoAnchor): Removed use of encodedHtmlRef function, which is no different from ref. (WebCore::FrameLoader::completeURL): Updated for KURL change. (WebCore::FrameLoader::scheduleLocationChange): Ditto. (WebCore::FrameLoader::canCachePage): Use protocolIs. (WebCore::FrameLoader::updatePolicyBaseURL): Update for KURL change. (WebCore::FrameLoader::setPolicyBaseURL): Take KURL. (WebCore::FrameLoader::startRedirectionTimer): Removed use of DeprecatedString. (WebCore::FrameLoader::load): Use protocolIs. (WebCore::FrameLoader::shouldHideReferrer): Use protocolIs. (WebCore::FrameLoader::shouldAllowNavigation): Updated for KURL change. (WebCore::FrameLoader::commitProvisionalLoad): Use blankURL. (WebCore::FrameLoader::open): Use protcolIs. (WebCore::FrameLoader::createHistoryItem): Use blankURL. (WebCore::FrameLoader::createJavaAppletWidget): Updated for KURL change. (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady): Removed DeprecatedString use. * loader/FrameLoader.h: Ditto. * loader/ImageDocument.cpp: (WebCore::ImageDocument::createDocumentStructure): Updated for KURL change. * loader/PluginDocument.cpp: (WebCore::PluginTokenizer::createDocumentStructure): Ditto. * loader/icon/IconDatabase.cpp: (WebCore::IconDatabase::iconForPageURL): Added a check for an empty URL before trying to use it as a hash table key. * loader/icon/IconLoader.h: Tweaked includes. * loader/loader.cpp: (WebCore::Loader::servePendingRequests): Use protcolIs. Also removed some code to set up a local variable that is never used (and a DeprecatedString on to boot!). * loader/mac/LoaderNSURLExtras.m: (suggestedFilenameWithMIMEType): Removed unnecessary typecast. * page/ContextMenuController.cpp: Removed include. * page/mac/EventHandlerMac.mm: (WebCore::EventHandler::needsKeyboardEventDisambiguationQuirks): Use protocolIs. * page/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge URLWithAttributeString:]): Removed getNSURL call. (-[WebCoreFrameBridge baseURL]): Ditto. * platform/KURL.cpp: (WebCore::isSchemeFirstChar): Fixed bug in handling of values >= 0x80. (WebCore::isSchemeChar): Ditto. (WebCore::isPathSegmentEndChar): Ditto. (WebCore::hexDigitValue): Changed parameter type to UChar. (WebCore::copyASCII): Added. (WebCore::findFirstOf): Added. (WebCore::KURL::protocolIs): Added. (WebCore::KURL::KURL): Tightened logic up quite a bit. Changed parameter types from DeprecatedString to String. (WebCore::KURL::init): Changed parameter type to String. Preserved the passed-in string even if the base is invalid. Cleaned up logic to determine if the originalString should be pased in to the parse function. Simplified by calling the new parse overload that takes String in many cases. (WebCore::KURL::lastPathComponent): Return String. (WebCore::KURL::protocol): Ditto. (WebCore::KURL::host): Ditto. (WebCore::KURL::port): Changed logic to use early return for clarity. (WebCore::KURL::pass): Return String. (WebCore::KURL::user): Ditto. (WebCore::KURL::ref): Ditto. (WebCore::assertProtocolIsGood): Added. (WebCore::KURL::protocolIs): Added. (WebCore::KURL::query): Return String. (WebCore::KURL::path): Ditto. (WebCore::KURL::setProtocol): Take String. (WebCore::KURL::setHost): Ditto. (WebCore::KURL::setPort): Use String. (WebCore::KURL::setHostAndPort): Take String. (WebCore::KURL::setUser): Ditto. (WebCore::KURL::setPass): Ditto. (WebCore::KURL::setRef): Ditto. (WebCore::KURL::setQuery): Ditto. (WebCore::KURL::setPath): Ditto. (WebCore::KURL::prettyURL): Return String. Use Vector<UChar> to build it. (WebCore::decodeURLEscapeSequences): Renamed from KURL::decode_string. Return String. Use Vector<UChar> to build it. (WebCore::KURL::isLocalFile): Use protocolIs. (WebCore::KURL::parse): Added an overload that takes a String to replace the use of DeprecatedString::ascii at various call sites. Updated for name change (urlString -> m_string). (WebCore::equalIgnoringRef): Wrote a new implementation that doesn't do any allocation. (WebCore::encodeWithURLEscapeSequences): Renamed from KURL::encode_string. Return String. (WebCore::appendEncodedHostname): Added. Replaces encodeHostname and avoids the need to allocate a string. (WebCore::findHostnamesInMailToURL): Update to use findFirstOf instead of regular expressions. (WebCore::findHostnameInHierarchicalURL): Ditto. (WebCore::encodeHostnames): Use protocolIs and the other helpers above. (WebCore::encodeRelativeString): Changed to put result into a CharBuffer. (WebCore::substituteBackslashes): Updated to use String. (WebCore::KURL::copyToBuffer): Added. (WebCore::protocolIs): Added. (WebCore::blankURL): Added. (WebCore::KURL::print): Updated. * platform/KURL.h: Added a number of comments. Reorganized the header a bit. Made the string constructors explicit. Changed to use String instead of DeprecatedString. Removed encodedHTMLRef. Renamed and added a few functions. * platform/cf/KURLCFNet.cpp: (WebCore::KURL::KURL): Streamlined the logic a bit. (WebCore::KURL::createCFURL): Changed to use copyToBuffer. * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: (WebCore::MediaPlayerPrivate::createQTMovie): Removed getNSURL call. Use protocolIs. * platform/mac/ClipboardMac.mm: (WebCore::ClipboardMac::declareAndWriteDragImage): Removed getNSURL call. * platform/mac/CookieJar.mm: (WebCore::cookies): Removed getNSURL call. (WebCore::setCookies): Removed getNSURL call. * platform/mac/KURLMac.mm: (WebCore::KURL::KURL): Streamlined the logic a bit. * platform/mac/PasteboardMac.mm: (WebCore::Pasteboard::writeURL): Removed getNSURL call. (WebCore::Pasteboard::writeImage): Ditto. * platform/mac/SSLKeyGeneratorMac.mm: (WebCore::signedPublicKeyAndChallengeString): Ditto. * platform/network/HTTPParsers.cpp: (WebCore::filenameFromHTTPContentDisposition): Updated for String::split. * platform/network/ResourceHandle.cpp: (WebCore::ResourceHandle::portAllowed): Use protocolIs. * platform/network/cf/ResourceErrorCF.cpp: (WebCore::ResourceError::operator CFErrorRef): Removed deprecatedString call. * platform/network/curl/ResourceHandleManager.cpp: (WebCore::headerCallback): Ditto. (WebCore::parseDataUrl): Use String instead of DeprecatedString. (WebCore::ResourceHandleManager::startJob): Updated for KURL changes. * platform/network/mac/ResourceErrorMac.mm: (WebCore::ResourceError::operator NSError*): Removed getNSURL call. * platform/network/mac/ResourceRequest.h: (WebCore::ResourceRequest::ResourceRequest): Removed DeprecatedString use. * platform/network/mac/ResourceRequestMac.mm: (WebCore::ResourceRequest::doUpdatePlatformRequest): Removed getNSURL call. * platform/network/mac/ResourceResponseMac.mm: (WebCore::ResourceResponse::nsURLResponse): Removed getNSURL call. * platform/qt/ClipboardQt.cpp: (WebCore::ClipboardQt::writeURL): Removed deprecatedString call. * platform/text/CString.h: (WebCore::CStringBuffer::length): Fixed size_t/unsigned mismatch to make it possible to compile this on Windows with higher warning level * platform/text/PlatformString.h: Updated split to modify a result parameter rather than returning a Vector. Added charactersAreAllASCII and an append function that appends a String to a Vector<UChar>. * platform/text/String.cpp: (WebCore::String::split): Updated. * platform/win/BString.cpp: (WebCore::BString::BString): Added conversion from KURL. * platform/win/BString.h: Ditto. * platform/win/ClipboardUtilitiesWin.cpp: (WebCore::markupToCF_HTML): Removed use of deprecatedString. * platform/win/ClipboardWin.cpp: (WebCore::filesystemPathFromUrlOrTitle): Ditto. (WebCore::createGlobalHDropContent): Ditto. (WebCore::ClipboardWin::setData): Ditto. (WebCore::ClipboardWin::writeRange): Ditto. * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::writeSelection): Ditto. * plugins/PluginStream.cpp: (WebCore::PluginStream::startStream): Ditto. (WebCore::PluginStream::destroyStream): Ditto. * plugins/win/PluginViewWin.cpp: (WebCore::scriptStringIfJavaScriptURL): Ditto. (WebCore::PluginView::performRequest): Ditto. (WebCore::PluginView::PluginView): Ditto. * rendering/HitTestResult.cpp: (WebCore::HitTestResult::absoluteImageURL): Removed DeprecatedString use. (WebCore::HitTestResult::absoluteLinkURL): Ditto. * rendering/RenderFrameSet.cpp: (WebCore::RenderFrameSet::layOutAxis): Fixed comment wording. * rendering/RenderImage.cpp: (WebCore::RenderImage::paintReplaced): Removed use of DeperecatedString, (WebCore::RenderImage::imageMap): Changed to call useMap instead of imageMap; both do the same thing, and the first is standard DOM. * rendering/RenderObject.cpp: (WebCore::RenderObject::addPDFURLRect): Rewrote and streamlined to remove DeprecatedString use. * rendering/RenderObject.h: Changed addPDFURLRect to take const IntRect&. * rendering/RenderPartObject.cpp: (WebCore::isURLAllowed): Updated for KURL change and use equalIgnoringRef instead of doing a setRef to get the same effect. (WebCore::RenderPartObject::updateWidget): Updated for KURL change. * rendering/RenderText.cpp: (WebCore::charactersAreAllASCII): Moved the guts to PlatformString.h. * rendering/SVGRenderSupport.cpp: (WebCore::renderSubtreeToImage): Added missing call to do layout. I ran into this while doing some layout tests while URL processing was broken. * rendering/SVGRenderTreeAsText.h: Removed include. * svg/SVGImageLoader.cpp: (WebCore::SVGImageLoader::updateFromElement): Removed DeprecatedString use. * svg/graphics/SVGImage.cpp: (WebCore::SVGImage::draw): Added missing call to do layout. I ran into this while doing some layout tests while URL processing was broken. (WebCore::SVGImage::dataChanged): Use a null URL rather than an arbitrary string for the document. * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::getResponseXML): Removed DeprecatedString use. (WebCore::XMLHttpRequest::urlMatchesDocumentDomain): Ditto. (WebCore::XMLHttpRequest::open): Ditto. (WebCore::XMLHttpRequest::send): Namespace change. (WebCore::XMLHttpRequest::dropProtection): Ditto. * xml/XMLHttpRequest.h: Removed DeprecatedString use. * xml/XSLImportRule.cpp: (WebCore::XSLImportRule::loadSheet): Removed DeprecatedString use. * xml/XSLStyleSheet.cpp: (WebCore::XSLStyleSheet::loadChildSheets): Ditto. (WebCore::XSLStyleSheet::loadChildSheet): Ditto. * xml/XSLStyleSheet.h: Ditto. * xml/XSLTProcessor.cpp: (WebCore::docLoaderFunc): Ditto. (WebCore::xsltStylesheetPointer): Ditto. (WebCore::xmlDocPtrFromNode): Ditto. WebKit/gtk: * webkit/webkitwebframe.cpp: Removed DeprecatedString use to try to keep it building. * webkit/webkitwebview.cpp: Ditto. WebKit/mac: Reviewed by Eric Seidel. - updated for WebCore KURL changes * History/WebHistoryItem.mm: (-[WebHistoryItem URL]): Removed getNSURL call. * Misc/WebElementDictionary.mm: (-[WebElementDictionary _absoluteImageURL]): Ditto. (-[WebElementDictionary _absoluteLinkURL]): Ditto. * Misc/WebNSAttributedStringExtras.mm: (fileWrapperForElement): Ditto. (+[NSAttributedString _web_attributedStringFromRange:]): Ditto. * Misc/WebNSURLExtras.mm: (-[NSString _webkit_stringByReplacingValidPercentEscapes]): Updated for function name change. * WebCoreSupport/WebContextMenuClient.mm: (WebContextMenuClient::downloadURL): Removed getNSURL call. * WebCoreSupport/WebDragClient.mm: (WebDragClient::createDragImageForLink): Ditto. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchWillPerformClientRedirect): Ditto. (WebFrameLoaderClient::startDownload): Ditto. (WebFrameLoaderClient::updateGlobalHistoryForStandardLoad): Ditto. (WebFrameLoaderClient::updateGlobalHistoryForReload): Ditto. (WebFrameLoaderClient::cancelledError): Ditto. (WebFrameLoaderClient::blockedError): Ditto. (WebFrameLoaderClient::cannotShowURLError): Ditto. (WebFrameLoaderClient::interruptForPolicyChangeError): Ditto. (WebFrameLoaderClient::cannotShowMIMETypeError): Ditto. (WebFrameLoaderClient::fileDoesNotExistError): Ditto. (WebFrameLoaderClient::willUseArchive): Ditto. (WebFrameLoaderClient::setTitle): Ditto. (WebFrameLoaderClient::actionDictionary): Ditto. (WebFrameLoaderClient::createFrame): Ditto. (WebFrameLoaderClient::objectContentType): Ditto. (WebFrameLoaderClient::createPlugin): Ditto. (WebFrameLoaderClient::createJavaAppletWidget): Ditto. * WebView/WebDataSource.mm: (-[WebDataSource _URL]): Ditto. (-[WebDataSource _initWithDocumentLoader:]): Ditto. (-[WebDataSource unreachableURL]): Ditto. * WebView/WebHTMLView.mm: (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto. WebKit/win: - updated for WebCore KURL changes * MarshallingHelpers.cpp: (MarshallingHelpers::BSTRToKURL): Removed deprecatedString call. (MarshallingHelpers::KURLToBSTR): Tweaked for efficiency. * WebContextMenuClient.cpp: (WebContextMenuClient::searchWithGoogle): Updated for KURL changes. * WebDataSource.cpp: (WebDataSource::unreachableURL): Ditto. * WebDownload.cpp: (WebDownload::init): Ditto. (WebDownload::initWithRequest): Ditto. * WebFrame.cpp: (WebFrame::loadData): Ditto. (WebFrame::loadURLIntoChild): Ditto. (WebFrame::objectContentType): Ditto. * WebResource.cpp: (WebResource::initWithData): Ditto. * WebURLResponse.cpp: (WebURLResponse::createInstance): Ditto. (WebURLResponse::initWithURL): Ditto. * WebView.cpp: (WebView::userAgentForURL): Ditto. (WebView::copyURL): Ditto. (WebView::notifyPreferencesChanged): Ditto. WebKit/wx: * WebView.cpp: Removed use of DeprecatedString to keep this compiling. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 18 Jan, 2008 1 commit
-
-
hyatt@apple.com authored
Fix for http://bugs.webkit.org/show_bug.cgi?id=14975 Computed size of padding is incorrect because we default padding to auto. This is a made-up value that was only used to implement cellpadding on tables. We needed this made-up value in order to tell that padding wasn't set so that we could then apply cellpadding. This patch rewrites cellpadding to be like other browsers. Instead of being a setting on the table renderer that applies to all cells (even ones that were not <td>s), cellpadding is now mapped into the style of <td>s. With this change it effectively becomes a content model feature and not a rendering feature. For example, a <td> will pick up cellpadding even when it is not a cell and/or the enclosing <table> is not a table. Anonymous cells and CSS-display-type cells will now never pick up cellpadding. This behavior is all consistent with other browsers. Reviewed by Antti Added fast/css/padding-no-renderer.html * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::canShareStyleWithElement): (WebCore::CSSStyleSelector::styleForElement): * css/CSSStyleSelector.h: * dom/StyledElement.cpp: * dom/StyledElement.h: (WebCore::StyledElement::canHaveAdditionalAttributeStyleDecls): (WebCore::StyledElement::additionalAttributeStyleDecls): * html/HTMLTableCellElement.cpp: (WebCore::HTMLTableCellElement::additionalAttributeStyleDecls): * html/HTMLTableCellElement.h: (WebCore::HTMLTableCellElement::canHaveAdditionalAttributeStyleDecls): * html/HTMLTableColElement.cpp: (WebCore::HTMLTableColElement::additionalAttributeStyleDecls): * html/HTMLTableColElement.h: (WebCore::HTMLTableColElement::canHaveAdditionalAttributeStyleDecls): * html/HTMLTableElement.cpp: (WebCore::HTMLTableElement::parseMappedAttribute): (WebCore::HTMLTableElement::additionalAttributeStyleDecls): (WebCore::HTMLTableElement::addSharedCellDecls): (WebCore::HTMLTableElement::addSharedCellBordersDecl): (WebCore::HTMLTableElement::addSharedCellPaddingDecl): (WebCore::HTMLTableElement::addSharedGroupDecls): (WebCore::HTMLTableElement::attach): * html/HTMLTableElement.h: (WebCore::HTMLTableElement::canHaveAdditionalAttributeStyleDecls): * html/HTMLTableSectionElement.cpp: (WebCore::HTMLTableSectionElement::additionalAttributeStyleDecls): * html/HTMLTableSectionElement.h: (WebCore::HTMLTableSectionElement::canHaveAdditionalAttributeStyleDecls): * rendering/AutoTableLayout.cpp: (WebCore::AutoTableLayout::recalcColumn): * rendering/RenderObject.cpp: (WebCore::RenderObject::paddingTop): (WebCore::RenderObject::paddingBottom): (WebCore::RenderObject::paddingLeft): (WebCore::RenderObject::paddingRight): * rendering/RenderStyle.cpp: (WebCore::StyleSurroundData::StyleSurroundData): * rendering/RenderStyle.h: (WebCore::RenderStyle::initialPadding): * rendering/RenderTable.cpp: (WebCore::RenderTable::RenderTable): * rendering/RenderTable.h: LayoutTests: Updated results for http://bugs.webkit.org/show_bug.cgi?id=14975 Reviewed by Antti * fast/css/computed-style-without-renderer-expected.txt: * fast/css/padding-no-renderer-expected.txt: Added. * fast/css/padding-no-renderer.html: Added. * platform/mac/fast/css/acid2-expected.checksum: * platform/mac/fast/css/acid2-expected.png: * platform/mac/fast/css/acid2-expected.txt: * platform/mac/fast/css/acid2-pixel-expected.checksum: * platform/mac/fast/css/acid2-pixel-expected.png: * platform/mac/fast/css/acid2-pixel-expected.txt: * platform/mac/fast/frames/viewsource-attribute-expected.checksum: * platform/mac/fast/frames/viewsource-attribute-expected.png: * platform/mac/fast/frames/viewsource-attribute-expected.txt: * platform/mac/fast/lists/ordered-list-with-no-ol-tag-expected.checksum: * platform/mac/fast/lists/ordered-list-with-no-ol-tag-expected.png: * platform/mac/fast/lists/ordered-list-with-no-ol-tag-expected.txt: * platform/mac/fast/table/add-before-anonymous-child-expected.checksum: * platform/mac/fast/table/add-before-anonymous-child-expected.png: * platform/mac/fast/table/add-before-anonymous-child-expected.txt: * platform/mac/fast/table/cell-absolute-child-expected.checksum: * platform/mac/fast/table/cell-absolute-child-expected.png: * platform/mac/fast/table/cell-absolute-child-expected.txt: * platform/mac/fast/table/frame-and-rules-expected.checksum: * platform/mac/fast/table/frame-and-rules-expected.png: * platform/mac/fast/table/frame-and-rules-expected.txt: * platform/mac/http/tests/misc/acid2-expected.checksum: * platform/mac/http/tests/misc/acid2-expected.png: * platform/mac/http/tests/misc/acid2-expected.txt: * platform/mac/http/tests/misc/acid2-pixel-expected.checksum: * platform/mac/http/tests/misc/acid2-pixel-expected.png: * platform/mac/http/tests/misc/acid2-pixel-expected.txt: * platform/mac/tables/mozilla/bugs/bug30985-expected.checksum: * platform/mac/tables/mozilla/bugs/bug30985-expected.png: * platform/mac/tables/mozilla/bugs/bug30985-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29647 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 08 Jan, 2008 1 commit
-
-
mitz@apple.com authored
- prefix all member variables in CSSStyleSelector with m_ * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::CSSStyleSelector): (WebCore::CSSStyleSelector::init): (WebCore::CSSStyleSelector::setEncodedURL): (WebCore::CSSStyleSelector::loadDefaultStyle): (WebCore::CSSStyleSelector::matchRules): (WebCore::CSSStyleSelector::matchRulesForList): (WebCore::CSSStyleSelector::initElementAndPseudoState): (WebCore::CSSStyleSelector::initForStyleResolve): (WebCore::CSSStyleSelector::canShareStyleWithElement): (WebCore::CSSStyleSelector::locateSharedStyle): (WebCore::CSSStyleSelector::matchUARules): (WebCore::CSSStyleSelector::styleForElement): (WebCore::CSSStyleSelector::pseudoStyleForElement): (WebCore::CSSStyleSelector::updateFont): (WebCore::CSSStyleSelector::cacheBorderAndBackground): (WebCore::CSSStyleSelector::checkSelector): (WebCore::CSSStyleSelector::checkOneSelector): (WebCore::CSSStyleSelector::applyProperty): (WebCore::CSSStyleSelector::mapBackgroundImage): (WebCore::CSSStyleSelector::mapBackgroundSize): (WebCore::CSSStyleSelector::mapBackgroundXPosition): (WebCore::CSSStyleSelector::mapBackgroundYPosition): (WebCore::CSSStyleSelector::checkForTextSizeAdjust): (WebCore::CSSStyleSelector::getColorFromPrimitiveValue): * css/CSSStyleSelector.h: (WebCore::CSSStyleSelector::): (WebCore::CSSRuleData::CSSRuleData): (WebCore::CSSRuleDataList::CSSRuleDataList): (WebCore::CSSRuleDataList::append): * css/SVGCSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applySVGProperty): * rendering/RenderStyle.cpp: (WebCore::RenderStyle::isStyleAvailable): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 25 Dec, 2007 1 commit
-
-
dsmith@webkit.org authored
Reviewed by Oliver. - http://bugs.webkit.org/show_bug.cgi?id=16587 Implement the most useful part of the W3C Selectors API. * WebCore.xcodeproj/project.pbxproj: * css/CSSStyleSelector.h: Make Node a friend of CSSStyleSelector so it can use checkSelector() * dom/ChildNodeList.cpp: (WebCore::ChildNodeList::ChildNodeList): Change to being a DynamicNodeList * dom/ChildNodeList.h: * dom/ClassNodeList.cpp: (WebCore::ClassNodeList::ClassNodeList): Change to being a DynamicNodeList * dom/ClassNodeList.h: * dom/Document.idl: Add the new functions * dom/DynamicNodeList.cpp: Copied from WebCore/dom/NodeList.cpp. (WebCore::DynamicNodeList::DynamicNodeList): Rename NodeList to DynamicNodeList, to differentiate it from the new StaticNodeList (WebCore::DynamicNodeList::~DynamicNodeList): (WebCore::DynamicNodeList::recursiveLength): (WebCore::DynamicNodeList::itemForwardsFromCurrent): (WebCore::DynamicNodeList::itemBackwardsFromCurrent): (WebCore::DynamicNodeList::recursiveItem): (WebCore::DynamicNodeList::itemWithName): (WebCore::DynamicNodeList::rootNodeChildrenChanged): (WebCore::DynamicNodeList::Caches::Caches): (WebCore::DynamicNodeList::Caches::reset): * dom/DynamicNodeList.h: Copied from WebCore/dom/NodeList.h. (WebCore::DynamicNodeList::rootNodeAttributeChanged): * dom/Element.idl: Add the new functions * dom/NameNodeList.cpp: Change to being a DynamicNodeList (WebCore::NameNodeList::NameNodeList): * dom/NameNodeList.h: (WebCore::NameNodeList::rootNodeAttributeChanged): * dom/Node.cpp: (WebCore::TagNodeList::TagNodeList): Change to being a DynamicNodeList (WebCore::Node::registerDynamicNodeList): (WebCore::Node::unregisterDynamicNodeList): (WebCore::Node::getElementsByName): (WebCore::Node::getElementsByClassName): (WebCore::Node::querySelector): new (WebCore::Node::querySelectorAll): new * dom/Node.h: * dom/NodeList.cpp: Removed. * dom/NodeList.h: This is now an abstract superclass of DynamicNodeList and StaticNodeList (WebCore::NodeList::NodeList): (WebCore::NodeList::~NodeList): * dom/SelectorNodeList.cpp: Added. (WebCore::SelectorNodeList::SelectorNodeList): New StaticNodeList subclass that filters elements by CSS selector * dom/SelectorNodeList.h: Added. * dom/StaticNodeList.cpp: Added. (WebCore::StaticNodeList::length): (WebCore::StaticNodeList::item): (WebCore::StaticNodeList::itemWithName): * dom/StaticNodeList.h: Added. (WebCore::StaticNodeList::StaticNodeList): (WebCore::StaticNodeList::~StaticNodeList): LayoutTests: Reviewed by Oliver. - http://bugs.webkit.org/show_bug.cgi?id=16587 Implement the most useful part of the W3C Selectors API. * fast/dom/SelectorAPI: Copied from LayoutTests/fast/dom/getElementsByClassName. * fast/dom/SelectorAPI/dumpNodeList-expected.txt: * fast/dom/SelectorAPI/dumpNodeList.html: Modified to test querySelector and querySelectorAll instead of getElementsByClassName * fast/dom/Window/window-properties-expected.txt: Added querySelector and querySelectorAll git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28981 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 19 Dec, 2007 1 commit
-
-
mitz@apple.com authored
Reviewed by Darin Adler and Dave Hyatt. - Substitute the user's preferred standard font for an unknown primary font before falling back on the platform's last resort font Cannot be tested in DumpRenderTree because it sets the standard font to Times, which is also the hard-coded last resort font on Mac. * css/CSSFontSelector.cpp: (WebCore::CSSFontSelector::getFontData): Changed the early bail out condition to allow getting generic font families from settings even if there are not @font-face rules. Fixed a typo that mapped fantasy to cursive. Added a mapping from -webkit-standard to the standard family. * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::CSSStyleSelector): Changed to always create a font selector. (WebCore::CSSRuleSet::addRulesFromSheet): (WebCore::CSSStyleSelector::applyProperty): Changed to always use the font selector. * css/CSSStyleSel...
-
- 27 Nov, 2007 1 commit
-
-
timothy@apple.com authored
Reviewed by Dave Hyatt. <rdar://problem/5569233> Add the ability to disable author and user CSS styles * WebCore.base.exp: Add the Settings::setAuthorAndUserStylesEnabled symbol. * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::CSSStyleSelector): Add a new matchAuthorAndUserStyles parameter. (WebCore::CSSStyleSelector::styleForElement): Check m_matchAuthorAndUserStyles before matching user and author rules. (WebCore::CSSStyleSelector::pseudoStyleForElement): Ditto. (WebCore::CSSStyleSelector::styleRulesForElement): Ditto. * css/CSSStyleSelector.h: Add m_matchAuthorAndUserStyles and new constructor parameter. * dom/Document.cpp: (WebCore::Document::Document): Pass Settings::authorAndUserStylesEnabled to the CSSStyleSelector. (WebCore::Document::recalcStyleSelector): Skip collecting the author stylesheets if Settings::authorAndUserStylesEnabled is false, and pass that to the CSSStyleSelector. * page/Settings.cpp: (WebCore::Settings::Settings): Initialize m_authorAndUserStylesEnabled to true. (WebCore::Settings::setAuthorAndUserStylesEnabled): Recalc style in all the frames when the setting changes. * page/Settings.h: Add m_authorAndUserStylesEnabled. (WebCore::Settings::authorAndUserStylesEnabled): Return m_authorAndUserStylesEnabled. WebKit/mac: Reviewed by Dave Hyatt. <rdar://problem/5569233> Add the ability to disable author and user CSS styles * WebView/WebPreferenceKeysPrivate.h: Define WebKitRespectStandardStyleKeyEquivalentsPreferenceKey. * WebView/WebPreferences.m: (+[WebPreferences initialize]): Default WebKitRespectStandardStyleKeyEquivalentsPreferenceKey to YES. (-[WebPreferences authorAndUserStylesEnabled]): Return the setting's BOOL value. (-[WebPreferences setAuthorAndUserStylesEnabled:]): Set the setting's BOOL value. * WebView/WebPreferencesPrivate.h: Add authorAndUserStylesEnabled and setAuthorAndUserStylesEnabled:. * WebView/WebView.mm: (-[WebView _preferencesChangedNotification:]): Update WebCore::Settings::authorAndUserStylesEnabled. WebKitTools: Reviewed by Dave Hyatt. <rdar://problem/5569233> Add the ability to disable author and user CSS styles Add support for disabling author and user styles for testing. * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: * DumpRenderTree/LayoutTestController.cpp: (setAuthorAndUserStylesEnabledCallback): (LayoutTestController::staticFunctions): * DumpRenderTree/LayoutTestController.h: * DumpRenderTree/mac/LayoutTestControllerMac.mm: (LayoutTestController::setAuthorAndUserStylesEnabled): * DumpRenderTree/win/LayoutTestControllerWin.cpp: (LayoutTestController::setAuthorAndUserStylesEnabled): LayoutTests: Reviewed by Dave Hyatt. Test for: <rdar://problem/5569233> Add the ability to disable author and user CSS styles * fast/css/disabled-author-styles.html: Added. * platform/mac/fast/css/disabled-author-styles-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 29 Oct, 2007 1 commit
-
-
hyatt authored
Land the back end for CSS animated property transitions. I am landing this in stages, so the AnimationController class is deliberately left empty. Reviewed by darin/aroben * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSPropertyNames.in: * css/CSSTimingFunctionValue.cpp: Added. (WebCore::CSSTimingFunctionValue::cssText): * css/CSSTimingFunctionValue.h: Added. (WebCore::CSSTimingFunctionValue::CSSTimingFunctionValue): (WebCore::CSSTimingFunctionValue::firstPoint): (WebCore::CSSTimingFunctionValue::secondPoint): * css/CSSValueKeywords.in: * history/CachedPage.cpp: (WebCore::CachedPage::restore): * page/AnimationController.cpp: Added. (WebCore::AnimationController::AnimationController): (WebCore::AnimationController::~AnimationController): (WebCore::AnimationController::cancelTransitions): (WebCore::AnimationController::updateTransitions): (WebCore::AnimationController::suspendAnimations): (WebCore::AnimationController::resumeAnimations): * page/AnimationController.h: Added. * page/Frame.cpp: (WebCore::Frame::animationController): (WebCore::Frame::clearTimers): * page/Frame.h: * page/FramePrivate.h: * rendering/RenderBox.cpp: (WebCore::RenderBox::setStyle): (WebCore::RenderBox::destroy): * rendering/RenderObject.cpp: (WebCore::RenderObject::animationController): * rendering/RenderObject.h: * rendering/RenderStyle.cpp: (WebCore::Transition::Transition): (WebCore::Transition::~Transition): (WebCore::Transition::operator=): (WebCore::Transition::operator==): (WebCore::Transition::fillUnsetProperties): (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::operator==): (WebCore::StyleRareNonInheritedData::transitionDataEquivalent): (WebCore::RenderStyle::diff): (WebCore::RenderStyle::adjustTransitions): (WebCore::RenderStyle::accessTransitions): * rendering/RenderStyle.h: (WebCore::BackgroundLayer::next): (WebCore::): (WebCore::TimingFunction::TimingFunction): (WebCore::TimingFunction::operator==): (WebCore::Transition::next): (WebCore::Transition::isTransitionDurationSet): (WebCore::Transition::isTransitionRepeatCountSet): (WebCore::Transition::isTransitionTimingFunctionSet): (WebCore::Transition::isTransitionPropertySet): (WebCore::Transition::isEmpty): (WebCore::Transition::clearTransitionDuration): (WebCore::Transition::clearTransitionRepeatCount): (WebCore::Transition::clearTransitionTimingFunction): (WebCore::Transition::clearTransitionProperty): (WebCore::Transition::transitionDuration): (WebCore::Transition::transitionRepeatCount): (WebCore::Transition::transitionTimingFunction): (WebCore::Transition::transitionProperty): (WebCore::Transition::setTransitionDuration): (WebCore::Transition::setTransitionRepeatCount): (WebCore::Transition::setTransitionTimingFunction): (WebCore::Transition::setTransitionProperty): (WebCore::Transition::setNext): (WebCore::Transition::operator!=): (WebCore::RenderStyle::transitions): (WebCore::RenderStyle::clearTransitions): (WebCore::RenderStyle::inheritTransitions): (WebCore::RenderStyle::initialTransitionDuration): (WebCore::RenderStyle::initialTransitionRepeatCount): (WebCore::RenderStyle::initialTransitionTimingFunction): (WebCore::RenderStyle::initialTransitionProperty): * rendering/RenderWidget.cpp: (WebCore::RenderWidget::destroy): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 22 Oct, 2007 1 commit
-
-
eseidel authored
Reviewed by hyatt. Implement <font-face> and friends for SVG. http://bugs.webkit.org/show_bug.cgi?id=10652 * DerivedSources.make: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSSVGElementWrapperFactory.cpp: * dom/Document.cpp: (WebCore::Document::mappedElementSheet): (WebCore::Document::recalcStyleSelector): * dom/Document.h: * ksvg2/scripts/make_names.pl: * ksvg2/svg/SVGDefinitionSrcElement.cpp: Added. (WebCore::SVGDefinitionSrcElement::SVGDefinitionSrcElement): (WebCore::SVGDefinitionSrcElement::~SVGDefinitionSrcElement): (WebCore::SVGDefinitionSrcElement::childrenChanged): * ksvg2/svg/SVGDefinitionSrcElement.h: Added. * ksvg2/svg/SVGDefinitionSrcElement.idl: Added. * ksvg2/svg/SVGFontFaceElement.cpp: Added. (WebCore::SVGFontFaceElement::SVGFontFaceElement): (WebCore::SVGFontFaceElement::~SVGFont...
-
- 12 Oct, 2007 2 commits
-
-
oliver authored
Reviewed by Maciej and Eric. Implement CSS selector combinators nondeterministic matching. Fixes http://bugs.webkit.org/show_bug.cgi?id=3428 * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::matchRulesForList): (WebCore::CSSStyleSelector::checkSelector): Split the function and make the second part recursive (WebCore::CSSStyleSelector::checkOneSelector): Handle pseodo-elements rules and hoveractive quirks here instead of in checkSelector. * css/CSSStyleSelector.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26539 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
oliver authored
to be downloaded from the Web and rendered in Web pages. Right now only TrueType fonts are supported. Proprietary formats like .eot are not supported. Reviewed by Eric Seidel Many tests will be coming in a future landing. * WebCore.base.exp: Expose some more stuff for WebKit, caused by font restructuring. * WebCore.xcodeproj/project.pbxproj: Add all the new font face files. * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Make sure to ignore the 'src' property of @font-face rules. * css/CSSFontFace.cpp: Added. (WebCore::CSSFontFace::CSSFontFace): (WebCore::CSSFontFace::~CSSFontFace): (WebCore::CSSFontFace::isLoaded): (WebCore::CSSFontFace::isValid): (WebCore::CSSFontFace::addSource): (WebCore::CSSFontFace::fontLoaded): (WebCore::CSSFontFace::getFontData): * css/CSSFontFace.h: Added. A CSSFontFace is a composite object. It consists of multiple font-face sources, where each source represents either a remote or local file in a @font-face rule's src list. * css/CSSFontFaceRule.cpp: (WebCore::CSSFontFaceRule::setDeclaration): (WebCore::CSSFontFaceRule::cssText): * css/CSSFontFaceRule.h: The implementation of the @font-face rule itself in the CSS sheet back end. * css/CSSFontFaceSource.cpp: Added. (WebCore::CSSFontFaceSource::CSSFontFaceSource): (WebCore::CSSFontFaceSource::~CSSFontFaceSource): (WebCore::CSSFontFaceSource::pruneTable): (WebCore::CSSFontFaceSource::isLoaded): (WebCore::CSSFontFaceSource::isValid): (WebCore::CSSFontFaceSource::fontLoaded): (WebCore::CSSFontFaceSource::getFontData): * css/CSSFontFaceSource.h: Added. (WebCore::CSSFontFaceSource::string): (WebCore::CSSFontFaceSource::setFontFace): A font face source represents a single remote or local font. If it represents a remote font than it wraps a CachedFont. * css/CSSFontFaceSrcValue.cpp: Added. (WebCore::CSSFontFaceSrcValue::isSupportedFormat): (WebCore::CSSFontFaceSrcValue::cssText): * css/CSSFontFaceSrcValue.h: Added. (WebCore::CSSFontFaceSrcValue::m_isLocal): (WebCore::CSSFontFaceSrcValue::~CSSFontFaceSrcValue): (WebCore::CSSFontFaceSrcValue::resource): (WebCore::CSSFontFaceSrcValue::format): (WebCore::CSSFontFaceSrcValue::isLocal): (WebCore::CSSFontFaceSrcValue::setFormat): Used in parsing. Represents the parsed form of the src value that can then be used to build up a CSSFontFace. * css/CSSFontSelector.cpp: Added. (WebCore::CSSFontSelector::CSSFontSelector): (WebCore::CSSFontSelector::~CSSFontSelector): (WebCore::CSSFontSelector::isEmpty): (WebCore::CSSFontSelector::docLoader): (WebCore::hashForFont): (WebCore::CSSFontSelector::addFontFaceRule): (WebCore::CSSFontSelector::fontLoaded): (WebCore::CSSFontSelector::getFontData): * css/CSSFontSelector.h: Added. The CSS font selector is the object that selects the correct font given a specified font family. It builds up a database of CSSFontFaces that can then be handed back. * css/CSSGrammar.y: * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFontFaceSrc): (WebCore::CSSParser::createFontFaceRule): * css/CSSParser.h: Modify the CSS grammar to now understand @font-face rules. * css/CSSPropertyNames.in: Add the src property. * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::CSSStyleSelector): (WebCore::CSSStyleSelector::styleForElement): (WebCore::CSSStyleSelector::updateFont): (WebCore::CSSRuleSet::addRulesFromSheet): (WebCore::CSSStyleSelector::applyProperty): (WebCore::CSSStyleSelector::ensureFontSelector): * css/CSSStyleSelector.h: (WebCore::CSSStyleSelector::fontSelector): The style selector now creates a font selector object and feeds it the appropriate information when @font-face rules are encountered. * dom/Document.cpp: (WebCore::Document::recalcStyle): Patch the update method now that it takes a font selector argument. * loader/Cache.cpp: (WebCore::createResource): (WebCore::Cache::getStatistics): * loader/Cache.h: Teach the Cache about CachedFonts. * loader/CachedFont.cpp: Added. (WebCore::CachedFont::CachedFont): (WebCore::CachedFont::~CachedFont): (WebCore::CachedFont::ref): (WebCore::CachedFont::data): (WebCore::CachedFont::beginLoadIfNeeded): (WebCore::CachedFont::ensureCustomFontData): (WebCore::CachedFont::platformDataFromCustomData): (WebCore::CachedFont::allReferencesRemoved): (WebCore::CachedFont::checkNotify): (WebCore::CachedFont::error): * loader/CachedFont.h: Added. (WebCore::CachedFont::schedule): The implementation of CachedFont. This represents the downloaded resource and has all the raw font data. * loader/CachedResource.h: (WebCore::CachedResource::): * loader/CachedResourceClient.h: (WebCore::CachedResourceClient::fontLoaded): Add a new fontLoaded method for clients of cached resources to track when fonts finish downloading. * loader/DocLoader.cpp: (WebCore::DocLoader::requestFont): * loader/DocLoader.h: Add the ability to request a font. * platform/Font.cpp: (WebCore::Font::operator==): (WebCore::Font::update): (WebCore::Font::drawText): * platform/Font.h: * platform/FontCache.cpp: (WebCore::FontCache::getFontData): * platform/FontCache.h: * platform/FontData.cpp: (WebCore::FontData::FontData): * platform/FontData.h: (WebCore::FontData::isCustomFont): (WebCore::FontData::isLoading): * platform/FontFallbackList.cpp: (WebCore::FontFallbackList::FontFallbackList): (WebCore::FontFallbackList::invalidate): (WebCore::FontFallbackList::fontDataAt): * platform/FontFallbackList.h: (WebCore::FontFallbackList::loadingCustomFonts): (WebCore::FontFallbackList::fontSelector): * platform/FontSelector.h: Added. (WebCore::FontSelector::~FontSelector): * platform/GlyphPageTreeNode.cpp: (WebCore::GlyphPageTreeNode::getRoot): (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData): (WebCore::GlyphPageTreeNode::~GlyphPageTreeNode): (WebCore::GlyphPageTreeNode::initializePage): (WebCore::GlyphPageTreeNode::getChild): (WebCore::GlyphPageTreeNode::pruneCustomFontData): * platform/GlyphPageTreeNode.h: (WebCore::GlyphPageTreeNode::GlyphPageTreeNode): (WebCore::GlyphPageTreeNode::page): * platform/PopupMenuClient.h: * platform/mac/FontCacheMac.mm: (WebCore::FontCache::getFontDataForCharacters): (WebCore::FontCache::getLastResortFallbackFont): (WebCore::FontCache::fontExists): (WebCore::FontCache::createFontPlatformData): * platform/mac/FontCustomPlatformData.cpp: Added. (WebCore::FontCustomPlatformData::~FontCustomPlatformData): (WebCore::FontCustomPlatformData::fontPlatformData): (WebCore::createFontCustomPlatformData): * platform/mac/FontCustomPlatformData.h: Added. (WebCore::FontCustomPlatformData::FontCustomPlatformData): * platform/mac/FontDataMac.mm: (WebCore::initFontData): (WebCore::FontData::platformInit): (WebCore::FontData::smallCapsFontData): (WebCore::FontData::platformWidthForGlyph): (WebCore::FontData::checkShapesArabic): * platform/mac/FontMac.mm: (WebCore::initializeATSUStyle): (WebCore::Font::drawGlyphs): * platform/mac/FontPlatformData.h: (WebCore::FontPlatformData::FontPlatformData): (WebCore::FontPlatformData::hash): (WebCore::FontPlatformData::operator==): * platform/mac/FontPlatformDataMac.mm: Added. (WebCore::FontPlatformData::FontPlatformData): (WebCore::~FontPlatformData): (WebCore::FontPlatformData::setFont): * platform/mac/WebCoreSystemInterface.h: * platform/mac/WebCoreSystemInterface.mm: * platform/win/FontCacheWin.cpp: (WebCore::FontCache::getLastResortFallbackFont): (WebCore::FontCache::fontExists): * platform/win/FontCustomPlatformData.cpp: Added. (WebCore::FontCustomPlatformData::~FontCustomPlatformData): (WebCore::FontCustomPlatformData::fontPlatformData): (WebCore::getData): (WebCore::releaseData): (WebCore::getBytesWithOffset): (WebCore::createFontCustomPlatformData): * platform/win/FontCustomPlatformData.h: Added. (WebCore::FontCustomPlatformData::FontCustomPlatformData): * platform/win/FontDataWin.cpp: (WebCore::FontData::platformInit): (WebCore::FontData::platformDestroy): (WebCore::FontData::smallCapsFontData): (WebCore::FontData::containsCharacters): (WebCore::FontData::determinePitch): * platform/win/FontPlatformData.h: (WebCore::FontPlatformData::FontPlatformData): (WebCore::FontPlatformData::hash): (WebCore::FontPlatformData::operator==): * platform/win/FontPlatformDataWin.cpp: (WebCore::FontPlatformData::FontPlatformData): * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::paint): Changes to platform to support rendering of custom fonts. Too large to go into, but for ports, the relevant object to implement is FontCustomPlatformData (to get the data loaded into your native font format), and then you have to patch your other font objects to know how to use the font. * rendering/RenderListBox.cpp: (WebCore::RenderListBox::updateFromElement): (WebCore::RenderListBox::paintItemForeground): * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::fontSelector): * rendering/RenderMenuList.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::fontSelector): * rendering/RenderTextControl.h: * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::setFontFromControlSize): * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::setFontFromControlSize): Patches for update now taking a font selector argument. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 25 Sep, 2007 1 commit
-
-
ddkilzer authored
Reviewed by Adam. - Fix http://bugs.webkit.org/show_bug.cgi?id=14885 LGPL'ed files contain incorrect FSF address * COPYING.LIB: * bindings/testbindings.cpp: * kjs/AllInOneFile.cpp: * kjs/DateMath.cpp: * kjs/PropertyNameArray.cpp: * kjs/PropertyNameArray.h: * kjs/config.h: WebCore: Reviewed by Adam. - Fix http://bugs.webkit.org/show_bug.cgi?id=14885 LGPL'ed files contain incorrect FSF address * LICENSE-LGPL-2: * LICENSE-LGPL-2.1: * WebCorePrefix.h: * bindings/js/JSCanvasRenderingContext2DCustom.cpp: * bindings/js/JSDOMWindowCustom.cpp: * bindings/js/JSDocumentCustom.cpp: * bindings/js/JSHTMLCollectionCustom.cpp: * bindings/js/JSHTMLElementWrapperFactory.cpp: * bindings/js/JSHTMLElementWrapperFactory.h: * bindings/js/JSHTMLInputElementBase.cpp: * bindings/js/JSHTMLInputElementBase.h: *...
-
- 18 Jul, 2007 2 commits
-
-
weinig authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24416 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig authored
Rename csshelper.h, csshelper.cpp, cssparser.h, cssparser.cpp, cssstyleselector.h, and cssstyleselector.cpp to be CamelCase. * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * bindings/objc/DOM.mm: * bindings/objc/DOMHTML.mm: * css/CSSGrammar.y: * css/CSSMediaRule.cpp: * css/CSSMutableStyleDeclaration.cpp: * css/CSSPrimitiveValue.cpp: * css/CSSStyleSheet.cpp: * css/MediaList.cpp: * css/MediaQueryExp.cpp: * css/csshelper.cpp: Removed. * css/csshelper.h: Removed. * css/CSSHelper.cpp: Copied from css/csshelper.cpp. * css/CSSHelper.h: Copied from css/csshelper.h. * css/cssparser.cpp: Removed. * css/cssparser.h: Removed. * css/CSSParser.cpp: Copied from css/cssparser.cpp. * css/CSSParser.h: Copied from css/cssparser.h. * css/cssstyleselector.cpp: Removed. * css/cssstyleselector.h: Removed. * css/CSSStyleSelector.cpp: Copied from css/cssstyleselector.cpp. * css/CSSStyleSelector.h: Copied from css/cssstyleselector.h. * dom/Document.cpp: * dom/Element.cpp: * dom/StyledElement.cpp: * editing/ApplyStyleCommand.cpp: * editing/markup.cpp: * html/CanvasGradient.cpp: * html/CanvasRenderingContext2D.cpp: * html/CanvasStyle.cpp: * html/HTMLAnchorElement.cpp: * html/HTMLBaseElement.cpp: * html/HTMLBodyElement.cpp: * html/HTMLDocument.cpp: * html/HTMLEmbedElement.cpp: * html/HTMLFormElement.cpp: * html/HTMLFrameElementBase.cpp: * html/HTMLImageElement.cpp: * html/HTMLImageLoader.cpp: * html/HTMLLinkElement.cpp: * html/HTMLObjectElement.cpp: * html/HTMLOptGroupElement.cpp: * html/HTMLOptionElement.cpp: * html/HTMLSelectElement.cpp: * html/HTMLTableElement.cpp: * html/HTMLTablePartElement.cpp: * html/HTMLTokenizer.cpp: * ksvg2/css/SVGCSSParser.cpp: * ksvg2/css/SVGCSSStyleSelector.cpp: * ksvg2/svg/SVGAElement.cpp: * ksvg2/svg/SVGClipPathElement.cpp: * ksvg2/svg/SVGGradientElement.cpp: * ksvg2/svg/SVGLength.cpp: * ksvg2/svg/SVGMaskElement.cpp: * ksvg2/svg/SVGStyledElement.cpp: * ksvg2/svg/SVGUseElement.cpp: * page/DOMWindow.cpp: * page/mac/FrameMac.mm: * page/mac/WebCoreFrameBridge.mm: * rendering/HitTestResult.cpp: * rendering/RenderObject.cpp: * rendering/RenderStyle.cpp: * rendering/RenderThemeMac.mm: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24415 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 25 May, 2007 1 commit
-
-
ggaren authored
Fixed a bug with Settings where a number of different objects held bare Settings* data members, even though the Page owns the Settings object and deletes it upon destruction. Added NULL checks since the Page can be deleted before the frame/document. * page/Settings.cpp: Removed reliance on setNeedsReapplyStylesForSettingsChange. * css/cssstyleselector.cpp: CSSStyleSelector was the worst offender. It held a number of back pointers that were not guaranteed. I removed the Settings*, Frame*, and FrameView* back pointers, but others could probably go, too. I replaced them with a single Document* pointer, which is guaranteed because the Document owns the CSSStyleSelector. * page/Page.cpp: Removed setNeedsReapplyStylesForSettingsChange -- the Settings object is now a proper subcontroller of Page, so it doesn't need to use a global table to find its page anymore. Also, this function confusingly implied that the Frames in a page can have heterogeneous settings, which is not true. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 23 May, 2007 1 commit
-
-
rwlbuis authored
http://bugs.webkit.org/show_bug.cgi?id=13174 line-height in font shorthand does not override a previously stated line-height property Make sure line-height is calculated against definite font-size and uses the last set line-height, ie. directly or through font shorthand. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 23 Apr, 2007 1 commit
-
-
hyatt authored
Fix for bug 13337, deep tag nesting is slow. This patch fixes a number of O(n^2) issues as well as making a few performance optimizations based off profiling. Details next to each change below. Note that calcMinMaxWidth being slow is a critical separate piece of this puzzle. Until bug 13430 is fixed, render tree construction will be O(n^2) (because of the minmaxrecalc bit setting being stupid enough to always crawl to the root of the tree) and calcMinMaxWidth will waste tons of unnecessary time. When these fixes are combined with the calcMinMaxWidth fix in 13430, the penguin page specified in 13337 loads in < 2 seconds (down from an infinite hang before). Reviewed by aroben, ollie * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::locateCousinList): (WebCore::CSSStyleSelector::locateSharedStyle): * css/csstyleselector.h Cap the depth of cousin searching on the shared style optimization. We will be willing to (at most) crawl up the tree the same distance that we were willing to crawl backwards through sibling lists. Leaving it uncapped resulted in pathological style resolution for the case of an infinitely nested chain of singletons. * html/HTMLParser.cpp: (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): (WebCore::HTMLParser::popBlock): Cap the number of residual style tags that we are willing to reopen. We will reopen at most 200 residual style tags, since the assumption is that once that many tags are on the stack, you're probably already every kind of bold, italic, and color of the rainbow. * rendering/RenderFlow.cpp: (WebCore::RenderFlow::absoluteClippedOverflowRect): absoluteClippedOverflowRect can just return the empty rect when the inline flow has no line boxes instead of doing a bunch of work (and calling containingBlock()) for no reason. * rendering/RenderInline.cpp: (WebCore::RenderInline::addChildToFlow): Remove the useless containingBlock() check from addChildToFlow. Obviously every inline's containing block is a block flow. * rendering/bidi.cpp: (WebCore::inlineWidth): (WebCore::RenderBlock::createLineBoxes): Cap the depth of individual line trees to 200. Again the assumption is that once that many open inlines exist all on one line that there's no way this would be intentional. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 21 Apr, 2007 1 commit
-
-
bdash authored
Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=13416 Repro crash after referencing the user stylesheet from JavaScript No test included because DumpRenderTree does not support setting the user stylesheet. * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::CSSStyleSelector): (WebCore::CSSStyleSelector::~CSSStyleSelector): * css/cssstyleselector.h: Made m_userSheet a RefPtr. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20992 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 26 Feb, 2007 1 commit
-
-
mjs authored
Reviewed by Lars. - <rdar://problem/5021698> Disable experimental SVG features (12883) * wtf/Platform.h: Add ENABLE() macro similar to HAVE() and USE(), to allow nicer handling of optional WebKit features. WebCore: Reviewed by Lars. - fixed <rdar://problem/5021698> Disable experimental SVG features (12883) I added an ENABLE_SVG_EXPERIMENTAL_FEATURES define to guard all use of the experimental features, and used it to guard relevant tag names, elements, JS bindings and renderers. I also converted all the existing optional feature defines to ENABLE_FOO instead of FOO_SUPPORT since that is the more standard way to do it in open source projects and works with the handy new ENABLE() macro. * CMakeLists.txt: * DerivedSources.make: * Projects/gdk/webcore-gdk.bkl: * WebCore.pro: * WebCore.vcproj/WebCore/WebCore.vcproj: * WebCore.vcproj/WebCore/build-generated-files.sh: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSCustomXPathNSResolver.cpp: * bindings/js/JSCustomXPathNSResolver.h: * bindings/js/JSSVGElementWrapperFactory.cpp: * bindings/js/JSSVGElementWrapperFactory.h: * bindings/js/JSSVGMatrixCustom.cpp: * bindings/js/JSSVGPODTypeWrapper.h: * bindings/js/JSSVGPathSegCustom.cpp: * bindings/js/JSSVGPathSegListCustom.cpp: * bindings/js/JSSVGPointListCustom.cpp: * bindings/js/JSXSLTProcessor.cpp: * bindings/js/JSXSLTProcessor.h: * bindings/js/kjs_binding.cpp: (KJS::setDOMException): * bindings/js/kjs_css.cpp: (KJS::toJS): * bindings/js/kjs_dom.cpp: (KJS::toJS): * bindings/js/kjs_html.cpp: (KJS::HTMLElementFunction::callAsFunction): * bindings/js/kjs_proxy.cpp: * bindings/js/kjs_proxy.h: * bindings/js/kjs_window.cpp: (KJS::Window::getValueProperty): * bindings/objc/DOM.mm: (WebCore::createElementClassMap): (+[DOMNode _nodeWith:WebCore::]): * bindings/objc/DOMCSS.mm: (+[DOMCSSValue _CSSValueWith:WebCore::]): * bindings/objc/DOMCustomXPathNSResolver.h: * bindings/objc/DOMCustomXPathNSResolver.mm: * bindings/objc/DOMEvents.mm: (+[DOMEvent _eventWith:WebCore::]): * bindings/objc/DOMInternal.h: * bindings/objc/DOMSVGPathSegInternal.mm: * bindings/objc/DOMXPath.mm: * bindings/objc/ExceptionHandlers.mm: (WebCore::raiseDOMException): * bindings/objc/PublicDOMInterfaces.h: * bindings/scripts/CodeGeneratorJS.pm: * bindings/scripts/CodeGeneratorObjC.pm: * config.h: * css/CSSGrammar.y: * css/CSSStyleDeclaration.cpp: (WebCore::propertyID): * css/StyleBase.h: * css/cssparser.cpp: (WebCore::CSSParser::parseValue): * css/cssparser.h: * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::loadDefaultStyle): (WebCore::CSSStyleSelector::initForStyleResolve): (WebCore::checkPseudoState): (WebCore::CSSStyleSelector::adjustRenderStyle): (WebCore::CSSStyleSelector::applyProperty): * css/cssstyleselector.h: * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::hasFeature): (WebCore::DOMImplementation::createDocument): * dom/Document.cpp: (WebCore::Document::Document): (WebCore::Document::~Document): (WebCore::Document::createElement): (WebCore::Document::implicitClose): (WebCore::Document::recalcStyleSelector): (WebCore::Document::createEvent): * dom/Document.h: * dom/Document.idl: * dom/Event.cpp: * dom/Event.h: * dom/EventTarget.cpp: * dom/EventTarget.h: * dom/MappedAttributeEntry.h: (WebCore::): * dom/Node.cpp: (WebCore::Node::createRendererIfNeeded): (WebCore::Node::shadowAncestorNode): * dom/Node.h: * dom/ProcessingInstruction.cpp: (WebCore::ProcessingInstruction::ProcessingInstruction): (WebCore::ProcessingInstruction::checkStyleSheet): (WebCore::ProcessingInstruction::setCSSStyleSheet): * dom/ProcessingInstruction.h: * dom/Text.cpp: (WebCore::Text::createRenderer): * dom/XMLTokenizer.cpp: (WebCore::XMLTokenizer::startElementNs): (WebCore::XMLTokenizer::endElementNs): (WebCore::XMLTokenizer::processingInstruction): (WebCore::XMLTokenizer::end): (WebCore::XMLTokenizer::insertErrorMessageBlock): * dom/XMLTokenizer.h: * html/HTMLEmbedElement.cpp: * html/HTMLEmbedElement.h: * html/HTMLObjectElement.cpp: * html/HTMLObjectElement.h: * ksvg2/css/SVGCSSParser.cpp: * ksvg2/css/SVGCSSStyleSelector.cpp: * ksvg2/css/SVGRenderStyle.cpp: * ksvg2/css/SVGRenderStyle.h: * ksvg2/css/SVGRenderStyleDefs.cpp: * ksvg2/css/SVGRenderStyleDefs.h: * ksvg2/events/JSSVGLazyEventListener.cpp: * ksvg2/events/JSSVGLazyEventListener.h: * ksvg2/events/SVGZoomEvent.cpp: * ksvg2/events/SVGZoomEvent.h: * ksvg2/misc/KCanvasRenderingStyle.cpp: * ksvg2/misc/KCanvasRenderingStyle.h: * ksvg2/misc/PointerEventsHitRules.cpp: * ksvg2/misc/PointerEventsHitRules.h: * ksvg2/misc/SVGDocumentExtensions.cpp: * ksvg2/misc/SVGDocumentExtensions.h: * ksvg2/misc/SVGImageLoader.cpp: * ksvg2/misc/SVGImageLoader.h: * ksvg2/misc/SVGTimer.cpp: * ksvg2/misc/SVGTimer.h: * ksvg2/misc/TimeScheduler.cpp: * ksvg2/misc/TimeScheduler.h: * ksvg2/scripts/make_names.pl: * ksvg2/svg/ColorDistance.cpp: * ksvg2/svg/ColorDistance.h: * ksvg2/svg/GradientAttributes.h: * ksvg2/svg/LinearGradientAttributes.h: * ksvg2/svg/PatternAttributes.h: * ksvg2/svg/RadialGradientAttributes.h: * ksvg2/svg/SVGAElement.cpp: * ksvg2/svg/SVGAElement.h: * ksvg2/svg/SVGAngle.cpp: * ksvg2/svg/SVGAngle.h: * ksvg2/svg/SVGAnimateColorElement.cpp: * ksvg2/svg/SVGAnimateColorElement.h: * ksvg2/svg/SVGAnimateElement.cpp: * ksvg2/svg/SVGAnimateElement.h: * ksvg2/svg/SVGAnimateElement.idl: * ksvg2/svg/SVGAnimateMotionElement.cpp: * ksvg2/svg/SVGAnimateMotionElement.h: * ksvg2/svg/SVGAnimateTransformElement.cpp: * ksvg2/svg/SVGAnimateTransformElement.h: * ksvg2/svg/SVGAnimateTransformElement.idl: * ksvg2/svg/SVGAnimatedPathData.cpp: * ksvg2/svg/SVGAnimatedPathData.h: * ksvg2/svg/SVGAnimatedPoints.cpp: * ksvg2/svg/SVGAnimatedPoints.h: * ksvg2/svg/SVGAnimatedTemplate.h: * ksvg2/svg/SVGAnimationElement.cpp: * ksvg2/svg/SVGAnimationElement.h: * ksvg2/svg/SVGCircleElement.cpp: * ksvg2/svg/SVGCircleElement.h: * ksvg2/svg/SVGClipPathElement.cpp: * ksvg2/svg/SVGClipPathElement.h: * ksvg2/svg/SVGColor.cpp: * ksvg2/svg/SVGColor.h: * ksvg2/svg/SVGComponentTransferFunctionElement.cpp: * ksvg2/svg/SVGComponentTransferFunctionElement.h: * ksvg2/svg/SVGCursorElement.cpp: * ksvg2/svg/SVGCursorElement.h: * ksvg2/svg/SVGDefsElement.cpp: * ksvg2/svg/SVGDefsElement.h: * ksvg2/svg/SVGDescElement.cpp: * ksvg2/svg/SVGDescElement.h: * ksvg2/svg/SVGDocument.cpp: * ksvg2/svg/SVGDocument.h: * ksvg2/svg/SVGElement.cpp: (WebCore::SVGElement::dispatchEvent): * ksvg2/svg/SVGElement.h: * ksvg2/svg/SVGElementInstance.cpp: * ksvg2/svg/SVGElementInstance.h: * ksvg2/svg/SVGElementInstance.idl: * ksvg2/svg/SVGElementInstanceList.cpp: * ksvg2/svg/SVGElementInstanceList.h: * ksvg2/svg/SVGElementInstanceList.idl: * ksvg2/svg/SVGEllipseElement.cpp: * ksvg2/svg/SVGEllipseElement.h: * ksvg2/svg/SVGException.h: * ksvg2/svg/SVGExternalResourcesRequired.cpp: * ksvg2/svg/SVGExternalResourcesRequired.h: * ksvg2/svg/SVGFEBlendElement.cpp: * ksvg2/svg/SVGFEBlendElement.h: * ksvg2/svg/SVGFEBlendElement.idl: * ksvg2/svg/SVGFEColorMatrixElement.cpp: * ksvg2/svg/SVGFEColorMatrixElement.h: * ksvg2/svg/SVGFEColorMatrixElement.idl: * ksvg2/svg/SVGFEComponentTransferElement.cpp: * ksvg2/svg/SVGFEComponentTransferElement.h: * ksvg2/svg/SVGFEComponentTransferElement.idl: * ksvg2/svg/SVGFECompositeElement.cpp: * ksvg2/svg/SVGFECompositeElement.h: * ksvg2/svg/SVGFECompositeElement.idl: * ksvg2/svg/SVGFEDiffuseLightingElement.cpp: * ksvg2/svg/SVGFEDiffuseLightingElement.h: * ksvg2/svg/SVGFEDiffuseLightingElement.idl: * ksvg2/svg/SVGFEDisplacementMapElement.cpp: * ksvg2/svg/SVGFEDisplacementMapElement.h: * ksvg2/svg/SVGFEDisplacementMapElement.idl: * ksvg2/svg/SVGFEDistantLightElement.cpp: * ksvg2/svg/SVGFEDistantLightElement.h: * ksvg2/svg/SVGFEDistantLightElement.idl: * ksvg2/svg/SVGFEFloodElement.cpp: * ksvg2/svg/SVGFEFloodElement.h: * ksvg2/svg/SVGFEFloodElement.idl: * ksvg2/svg/SVGFEFuncAElement.cpp: * ksvg2/svg/SVGFEFuncAElement.h: * ksvg2/svg/SVGFEFuncAElement.idl: * ksvg2/svg/SVGFEFuncBElement.cpp: * ksvg2/svg/SVGFEFuncBElement.h: * ksvg2/svg/SVGFEFuncBElement.idl: * ksvg2/svg/SVGFEFuncGElement.cpp: * ksvg2/svg/SVGFEFuncGElement.h: * ksvg2/svg/SVGFEFuncGElement.idl: * ksvg2/svg/SVGFEFuncRElement.cpp: * ksvg2/svg/SVGFEFuncRElement.h: * ksvg2/svg/SVGFEFuncRElement.idl: * ksvg2/svg/SVGFEGaussianBlurElement.cpp: * ksvg2/svg/SVGFEGaussianBlurElement.h: * ksvg2/svg/SVGFEGaussianBlurElement.idl: * ksvg2/svg/SVGFEImageElement.cpp: * ksvg2/svg/SVGFEImageElement.h: * ksvg2/svg/SVGFEImageElement.idl: * ksvg2/svg/SVGFELightElement.cpp: * ksvg2/svg/SVGFELightElement.h: * ksvg2/svg/SVGFEMergeElement.cpp: * ksvg2/svg/SVGFEMergeElement.h: * ksvg2/svg/SVGFEMergeElement.idl: * ksvg2/svg/SVGFEMergeNodeElement.cpp: * ksvg2/svg/SVGFEMergeNodeElement.h: * ksvg2/svg/SVGFEMergeNodeElement.idl: * ksvg2/svg/SVGFEOffsetElement.cpp: * ksvg2/svg/SVGFEOffsetElement.h: * ksvg2/svg/SVGFEOffsetElement.idl: * ksvg2/svg/SVGFEPointLightElement.cpp: * ksvg2/svg/SVGFEPointLightElement.h: * ksvg2/svg/SVGFEPointLightElement.idl: * ksvg2/svg/SVGFESpecularLightingElement.cpp: * ksvg2/svg/SVGFESpecularLightingElement.h: * ksvg2/svg/SVGFESpecularLightingElement.idl: * ksvg2/svg/SVGFESpotLightElement.cpp: * ksvg2/svg/SVGFESpotLightElement.h: * ksvg2/svg/SVGFESpotLightElement.idl: * ksvg2/svg/SVGFETileElement.cpp: * ksvg2/svg/SVGFETileElement.h: * ksvg2/svg/SVGFETileElement.idl: * ksvg2/svg/SVGFETurbulenceElement.cpp: * ksvg2/svg/SVGFETurbulenceElement.h: * ksvg2/svg/SVGFETurbulenceElement.idl: * ksvg2/svg/SVGFilterElement.cpp: * ksvg2/svg/SVGFilterElement.h: * ksvg2/svg/SVGFilterElement.idl: * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp: * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h: * ksvg2/svg/SVGFitToViewBox.cpp: * ksvg2/svg/SVGFitToViewBox.h: * ksvg2/svg/SVGForeignObjectElement.cpp: * ksvg2/svg/SVGForeignObjectElement.h: * ksvg2/svg/SVGForeignObjectElement.idl: * ksvg2/svg/SVGGElement.cpp: * ksvg2/svg/SVGGElement.h: * ksvg2/svg/SVGGradientElement.cpp: * ksvg2/svg/SVGGradientElement.h: * ksvg2/svg/SVGImageElement.cpp: * ksvg2/svg/SVGImageElement.h: * ksvg2/svg/SVGLangSpace.cpp: * ksvg2/svg/SVGLangSpace.h: * ksvg2/svg/SVGLength.cpp: * ksvg2/svg/SVGLength.h: * ksvg2/svg/SVGLengthList.cpp: * ksvg2/svg/SVGLengthList.h: * ksvg2/svg/SVGLineElement.cpp: * ksvg2/svg/SVGLineElement.h: * ksvg2/svg/SVGLinearGradientElement.cpp: * ksvg2/svg/SVGLinearGradientElement.h: * ksvg2/svg/SVGList.h: * ksvg2/svg/SVGListTraits.h: * ksvg2/svg/SVGLocatable.cpp: (WebCore::SVGLocatable::nearestViewportElement): (WebCore::SVGLocatable::farthestViewportElement): * ksvg2/svg/SVGLocatable.h: * ksvg2/svg/SVGMPathElement.cpp: * ksvg2/svg/SVGMPathElement.h: * ksvg2/svg/SVGMarkerElement.cpp: * ksvg2/svg/SVGMarkerElement.h: * ksvg2/svg/SVGMaskElement.cpp: * ksvg2/svg/SVGMaskElement.h: * ksvg2/svg/SVGMetadataElement.cpp: * ksvg2/svg/SVGMetadataElement.h: * ksvg2/svg/SVGNumberList.cpp: * ksvg2/svg/SVGNumberList.h: * ksvg2/svg/SVGPaint.cpp: * ksvg2/svg/SVGPaint.h: * ksvg2/svg/SVGParserUtilities.cpp: * ksvg2/svg/SVGParserUtilities.h: * ksvg2/svg/SVGPathElement.cpp: * ksvg2/svg/SVGPathElement.h: * ksvg2/svg/SVGPathSeg.h: * ksvg2/svg/SVGPathSegArc.cpp: * ksvg2/svg/SVGPathSegArc.h: * ksvg2/svg/SVGPathSegClosePath.cpp: * ksvg2/svg/SVGPathSegClosePath.h: * ksvg2/svg/SVGPathSegCurvetoCubic.cpp: * ksvg2/svg/SVGPathSegCurvetoCubic.h: * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp: * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h: * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp: * ksvg2/svg/SVGPathSegCurvetoQuadratic.h: * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp: * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h: * ksvg2/svg/SVGPathSegLineto.cpp: * ksvg2/svg/SVGPathSegLineto.h: * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp: * ksvg2/svg/SVGPathSegLinetoHorizontal.h: * ksvg2/svg/SVGPathSegLinetoVertical.cpp: * ksvg2/svg/SVGPathSegLinetoVertical.h: * ksvg2/svg/SVGPathSegList.cpp: * ksvg2/svg/SVGPathSegList.h: * ksvg2/svg/SVGPathSegMoveto.cpp: * ksvg2/svg/SVGPathSegMoveto.h: * ksvg2/svg/SVGPatternElement.cpp: * ksvg2/svg/SVGPatternElement.h: * ksvg2/svg/SVGPointList.cpp: * ksvg2/svg/SVGPointList.h: * ksvg2/svg/SVGPolyElement.cpp: * ksvg2/svg/SVGPolyElement.h: * ksvg2/svg/SVGPolygonElement.cpp: * ksvg2/svg/SVGPolygonElement.h: * ksvg2/svg/SVGPolylineElement.cpp: * ksvg2/svg/SVGPolylineElement.h: * ksvg2/svg/SVGPreserveAspectRatio.cpp: * ksvg2/svg/SVGPreserveAspectRatio.h: * ksvg2/svg/SVGRadialGradientElement.cpp: * ksvg2/svg/SVGRadialGradientElement.h: * ksvg2/svg/SVGRectElement.cpp: * ksvg2/svg/SVGRectElement.h: * ksvg2/svg/SVGRenderingIntent.h: * ksvg2/svg/SVGSVGElement.cpp: * ksvg2/svg/SVGSVGElement.h: * ksvg2/svg/SVGScriptElement.cpp: * ksvg2/svg/SVGScriptElement.h: * ksvg2/svg/SVGSetElement.cpp: * ksvg2/svg/SVGSetElement.h: * ksvg2/svg/SVGStopElement.cpp: * ksvg2/svg/SVGStopElement.h: * ksvg2/svg/SVGStringList.cpp: * ksvg2/svg/SVGStringList.h: * ksvg2/svg/SVGStylable.cpp: * ksvg2/svg/SVGStylable.h: * ksvg2/svg/SVGStyleElement.cpp: * ksvg2/svg/SVGStyleElement.h: * ksvg2/svg/SVGStyledElement.cpp: (WebCore::SVGStyledElement::notifyAttributeChange): * ksvg2/svg/SVGStyledElement.h: * ksvg2/svg/SVGStyledLocatableElement.cpp: * ksvg2/svg/SVGStyledLocatableElement.h: * ksvg2/svg/SVGStyledTransformableElement.cpp: * ksvg2/svg/SVGStyledTransformableElement.h: * ksvg2/svg/SVGSwitchElement.cpp: * ksvg2/svg/SVGSwitchElement.h: * ksvg2/svg/SVGSymbolElement.cpp: * ksvg2/svg/SVGSymbolElement.h: * ksvg2/svg/SVGTRefElement.cpp: * ksvg2/svg/SVGTRefElement.h: * ksvg2/svg/SVGTSpanElement.cpp: * ksvg2/svg/SVGTSpanElement.h: * ksvg2/svg/SVGTests.cpp: * ksvg2/svg/SVGTests.h: * ksvg2/svg/SVGTextContentElement.cpp: * ksvg2/svg/SVGTextContentElement.h: * ksvg2/svg/SVGTextElement.cpp: * ksvg2/svg/SVGTextElement.h: * ksvg2/svg/SVGTextPositioningElement.cpp: * ksvg2/svg/SVGTextPositioningElement.h: * ksvg2/svg/SVGTitleElement.cpp: * ksvg2/svg/SVGTitleElement.h: * ksvg2/svg/SVGTransform.cpp: * ksvg2/svg/SVGTransform.h: * ksvg2/svg/SVGTransformDistance.cpp: * ksvg2/svg/SVGTransformDistance.h: * ksvg2/svg/SVGTransformList.cpp: * ksvg2/svg/SVGTransformList.h: * ksvg2/svg/SVGTransformable.cpp: * ksvg2/svg/SVGTransformable.h: * ksvg2/svg/SVGURIReference.cpp: * ksvg2/svg/SVGURIReference.h: * ksvg2/svg/SVGUnitTypes.h: * ksvg2/svg/SVGUseElement.cpp: * ksvg2/svg/SVGUseElement.h: * ksvg2/svg/SVGUseElement.idl: * ksvg2/svg/SVGViewElement.cpp: * ksvg2/svg/SVGViewElement.h: * ksvg2/svg/SVGZoomAndPan.cpp: * ksvg2/svg/SVGZoomAndPan.h: * ksvg2/svg/svgtags.in: * loader/Cache.cpp: (WebCore::createResource): (WebCore::Cache::getStatistics): * loader/Cache.h: * loader/CachedImage.cpp: (WebCore::CachedImage::createImage): * loader/CachedResource.h: (WebCore::CachedResource::): * loader/CachedResourceClient.h: * loader/CachedXBLDocument.cpp: * loader/CachedXBLDocument.h: * loader/CachedXSLStyleSheet.cpp: * loader/CachedXSLStyleSheet.h: * loader/DocLoader.cpp: * loader/DocLoader.h: * page/DOMWindow.idl: * page/EventHandler.cpp: (WebCore::EventHandler::handleMouseMoveEvent): (WebCore::selectCursor): * page/Frame.cpp: (WebCore::Frame::Frame): * page/PageState.cpp: (WebCore::PageState::PageState): (WebCore::PageState::restore): * platform/MimeTypeRegistry.cpp: (WebCore::initialiseSupportedNonImageMimeTypes): * platform/graphics/FloatPoint3D.cpp: * platform/graphics/FloatPoint3D.h: * platform/graphics/ImageBuffer.cpp: (WebCore::ImageBuffer::renderSubtreeToImage): * platform/graphics/svg/SVGImage.cpp: * platform/graphics/svg/SVGImage.h: * platform/graphics/svg/SVGImageEmptyClients.h: * platform/graphics/svg/SVGPaintServer.cpp: * platform/graphics/svg/SVGPaintServer.h: * platform/graphics/svg/SVGPaintServerGradient.cpp: * platform/graphics/svg/SVGPaintServerGradient.h: * platform/graphics/svg/SVGPaintServerLinearGradient.cpp: * platform/graphics/svg/SVGPaintServerLinearGradient.h: * platform/graphics/svg/SVGPaintServerPattern.cpp: * platform/graphics/svg/SVGPaintServerPattern.h: * platform/graphics/svg/SVGPaintServerRadialGradient.cpp: * platform/graphics/svg/SVGPaintServerRadialGradient.h: * platform/graphics/svg/SVGPaintServerSolid.cpp: * platform/graphics/svg/SVGPaintServerSolid.h: * platform/graphics/svg/SVGResource.cpp: * platform/graphics/svg/SVGResource.h: * platform/graphics/svg/SVGResourceClipper.cpp: * platform/graphics/svg/SVGResourceClipper.h: * platform/graphics/svg/SVGResourceFilter.cpp: * platform/graphics/svg/SVGResourceFilter.h: * platform/graphics/svg/SVGResourceMarker.cpp: * platform/graphics/svg/SVGResourceMarker.h: * platform/graphics/svg/SVGResourceMasker.cpp: * platform/graphics/svg/SVGResourceMasker.h: * platform/graphics/svg/cg/CgSupport.cpp: * platform/graphics/svg/cg/CgSupport.h: * platform/graphics/svg/cg/RenderPathCg.cpp: * platform/graphics/svg/cg/SVGPaintServerCg.cpp: * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp: * platform/graphics/svg/cg/SVGResourceClipperCg.cpp: * platform/graphics/svg/cg/SVGResourceFilterCg.mm: * platform/graphics/svg/cg/SVGResourceMaskerCg.mm: * platform/graphics/svg/filters/SVGDistantLightSource.h: * platform/graphics/svg/filters/SVGFEBlend.cpp: * platform/graphics/svg/filters/SVGFEBlend.h: * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: * platform/graphics/svg/filters/SVGFEColorMatrix.h: * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: * platform/graphics/svg/filters/SVGFEComponentTransfer.h: * platform/graphics/svg/filters/SVGFEComposite.cpp: * platform/graphics/svg/filters/SVGFEComposite.h: * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: * platform/graphics/svg/filters/SVGFEDisplacementMap.h: * platform/graphics/svg/filters/SVGFEFlood.cpp: * platform/graphics/svg/filters/SVGFEFlood.h: * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: * platform/graphics/svg/filters/SVGFEGaussianBlur.h: * platform/graphics/svg/filters/SVGFEImage.cpp: * platform/graphics/svg/filters/SVGFEImage.h: * platform/graphics/svg/filters/SVGFEMerge.cpp: * platform/graphics/svg/filters/SVGFEMerge.h: * platform/graphics/svg/filters/SVGFEMorphology.cpp: * platform/graphics/svg/filters/SVGFEMorphology.h: * platform/graphics/svg/filters/SVGFEOffset.cpp: * platform/graphics/svg/filters/SVGFEOffset.h: * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: * platform/graphics/svg/filters/SVGFESpecularLighting.h: * platform/graphics/svg/filters/SVGFETile.h: * platform/graphics/svg/filters/SVGFETurbulence.cpp: * platform/graphics/svg/filters/SVGFETurbulence.h: * platform/graphics/svg/filters/SVGFilterEffect.cpp: * platform/graphics/svg/filters/SVGFilterEffect.h: * platform/graphics/svg/filters/SVGLightSource.cpp: * platform/graphics/svg/filters/SVGLightSource.h: * platform/graphics/svg/filters/SVGPointLightSource.h: * platform/graphics/svg/filters/SVGSpotLightSource.h: * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: * platform/graphics/svg/filters/cg/SVGFETileCg.mm: * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp: * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp: * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp: * platform/graphics/svg/qt/SVGPaintServerQt.cpp: * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp: * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp: * platform/graphics/svg/qt/SVGResourceClipperQt.cpp: * platform/graphics/svg/qt/SVGResourceFilterQt.cpp: * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp: * rendering/HitTestResult.cpp: (WebCore::HitTestResult::absoluteImageURL): (WebCore::HitTestResult::absoluteLinkURL): (WebCore::HitTestResult::isLiveLink): * rendering/RenderForeignObject.cpp: * rendering/RenderForeignObject.h: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::isTransparent): * rendering/RenderObject.cpp: (WebCore::RenderObject::containingBlock): * rendering/RenderObject.h: * rendering/RenderPath.cpp: * rendering/RenderPath.h: * rendering/RenderSVGBlock.cpp: * rendering/RenderSVGBlock.h: * rendering/RenderSVGContainer.cpp: * rendering/RenderSVGContainer.h: * rendering/RenderSVGGradientStop.cpp: * rendering/RenderSVGGradientStop.h: * rendering/RenderSVGHiddenContainer.cpp: * rendering/RenderSVGHiddenContainer.h: * rendering/RenderSVGImage.cpp: * rendering/RenderSVGImage.h: * rendering/RenderSVGInline.cpp: * rendering/RenderSVGInline.h: * rendering/RenderSVGInlineText.cpp: * rendering/RenderSVGInlineText.h: * rendering/RenderSVGTSpan.cpp: * rendering/RenderSVGTSpan.h: * rendering/RenderSVGText.cpp: * rendering/RenderSVGText.h: * rendering/RenderStyle.cpp: (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::operator==): (WebCore::RenderStyle::RenderStyle): (WebCore::RenderStyle::inheritFrom): (WebCore::RenderStyle::operator==): (WebCore::RenderStyle::inheritedNotEqual): (WebCore::RenderStyle::diff): * rendering/RenderStyle.h: * rendering/RenderText.cpp: (WebCore::RenderText::setStyle): (WebCore::RenderText::setTextInternal): * rendering/RenderTreeAsText.cpp: (WebCore::write): (WebCore::externalRepresentation): * rendering/SVGInlineFlowBox.cpp: * rendering/SVGInlineFlowBox.h: * rendering/SVGRenderTreeAsText.cpp: * rendering/SVGRenderTreeAsText.h: * rendering/SVGRootInlineBox.cpp: * rendering/SVGRootInlineBox.h: * rendering/bidi.cpp: (WebCore::shouldPreserveNewline): (WebCore::RenderBlock::findNextLineBreak): * webcore-base.bkl: * xml/NativeXPathNSResolver.cpp: * xml/NativeXPathNSResolver.h: * xml/XPathEvaluator.cpp: * xml/XPathEvaluator.h: * xml/XPathExpression.cpp: * xml/XPathExpression.h: * xml/XPathExpressionNode.cpp: * xml/XPathExpressionNode.h: * xml/XPathFunctions.cpp: * xml/XPathFunctions.h: * xml/XPathGrammar.y: * xml/XPathNSResolver.cpp: * xml/XPathNSResolver.h: * xml/XPathNamespace.cpp: * xml/XPathNamespace.h: * xml/XPathParser.cpp: * xml/XPathParser.h: * xml/XPathPath.cpp: * xml/XPathPath.h: * xml/XPathPredicate.cpp: * xml/XPathPredicate.h: * xml/XPathResult.cpp: * xml/XPathResult.h: * xml/XPathStep.cpp: * xml/XPathStep.h: * xml/XPathUtil.cpp: * xml/XPathUtil.h: * xml/XPathValue.cpp: * xml/XPathValue.h: * xml/XPathVariableReference.cpp: * xml/XPathVariableReference.h: * xml/XSLImportRule.cpp: * xml/XSLImportRule.h: * xml/XSLStyleSheet.cpp: * xml/XSLStyleSheet.h: * xml/XSLTProcessor.cpp: * xml/XSLTProcessor.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19855 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 15 Jan, 2007 1 commit
-
-
eseidel authored
Reviewed by bdash. Update header guards to follow new style guidelines using new clean-header-guards script. * bindings/js/JSHTMLElementWrapperFactory.h: * bindings/js/JSHTMLInputElementBase.h: * bindings/js/JSHTMLOptionElementConstructor.h: * bindings/js/JSSVGElementWrapperFactory.h: * bindings/js/JSSVGPODTypeWrapper.h: * bindings/js/JSXMLHttpRequest.h: * bindings/js/JSXSLTProcessor.h: * bindings/js/kjs_binding.h: * bindings/js/kjs_css.h: * bindings/js/kjs_dom.h: * bindings/js/kjs_domnode.h: * bindings/js/kjs_events.h: * bindings/js/kjs_html.h: * bindings/js/kjs_navigator.h: * bindings/js/kjs_proxy.h: * bindings/js/kjs_traversal.h: * bindings/js/kjs_window.h: * bridge/EditorClient.h: * bridge/History.h: * css/CSSStyleSheet.h: * css/CSSValue.h: * css/CSSValueList.h: * css/DashboardRegion.h: * css/FontFamilyValue.h: * css/FontValue.h: * css/MediaFeatureNames.h: * css/MediaList.h: * css/Pair.h: * css/RectImpl.h: * css/ShadowValue.h: * css/StyleBase.h: * css/StyleList.h: * css/StyleSheet.h: * css/StyleSheetList.h: * css/cssstyleselector.h: * dom/BeforeTextInsertedEvent.h: * dom/CDATASection.h: * dom/CharacterData.h: * dom/ChildNodeList.h: * dom/Comment.h: * dom/DOMImplementation.h: * dom/DocPtr.h: * dom/Document.h: * dom/DocumentFragment.h: * dom/DocumentMarker.h: * dom/DocumentType.h: * dom/EditingText.h: * dom/Entity.h: * dom/EntityReference.h: * dom/EventNames.h: * dom/EventTargetNode.h: * dom/NameNodeList.h: * dom/NamedNodeMap.h: * dom/Node.h: * dom/NodeList.h: * dom/Notation.h: * dom/Position.h: * dom/ProcessingInstruction.h: * dom/Range.h: * dom/StyleElement.h: * dom/Text.h: * editing/AppendNodeCommand.h: * editing/ApplyStyleCommand.h: * editing/BreakBlockquoteCommand.h: * editing/CommandByName.h: * editing/CompositeEditCommand.h: * editing/DeleteButton.h: * editing/DeleteButtonController.h: * editing/DeleteFromTextNodeCommand.h: * editing/DeleteSelectionCommand.h: * editing/InsertIntoTextNodeCommand.h: * editing/InsertLineBreakCommand.h: * editing/InsertNodeBeforeCommand.h: * editing/InsertParagraphSeparatorCommand.h: * editing/InsertTextCommand.h: * editing/JoinTextNodesCommand.h: * editing/MergeIdenticalElementsCommand.h: * editing/ModifySelectionListLevel.h: * editing/MoveSelectionCommand.h: * editing/RemoveCSSPropertyCommand.h: * editing/RemoveNodeAttributeCommand.h: * editing/RemoveNodeCommand.h: * editing/RemoveNodePreservingChildrenCommand.h: * editing/ReplaceSelectionCommand.h: * editing/SetNodeAttributeCommand.h: * editing/SplitElementCommand.h: * editing/SplitTextNodeCommand.h: * editing/SplitTextNodeContainingElementCommand.h: * editing/TextGranularity.h: * editing/TypingCommand.h: * editing/WrapContentsInDummySpanCommand.h: * history/BackForwardList.h: * history/HistoryItem.h: * history/HistoryItemTimer.h: * history/PageCache.h: * html/CanvasGradient.h: * html/CanvasPattern.h: * html/CanvasRenderingContext2D.h: * html/CanvasStyle.h: * html/FormDataList.h: * html/HTMLAnchorElement.h: * html/HTMLAppletElement.h: * html/HTMLAreaElement.h: * html/HTMLBRElement.h: * html/HTMLBaseElement.h: * html/HTMLBaseFontElement.h: * html/HTMLBlockquoteElement.h: * html/HTMLBodyElement.h: * html/HTMLButtonElement.h: * html/HTMLCanvasElement.h: * html/HTMLCollection.h: * html/HTMLDListElement.h: * html/HTMLDirectoryElement.h: * html/HTMLDivElement.h: * html/HTMLElement.h: * html/HTMLElementFactory.h: * html/HTMLEmbedElement.h: * html/HTMLFieldSetElement.h: * html/HTMLFontElement.h: * html/HTMLFormCollection.h: * html/HTMLFormElement.h: * html/HTMLFrameSetElement.h: * html/HTMLGenericFormElement.h: * html/HTMLHRElement.h: * html/HTMLHeadElement.h: * html/HTMLHeadingElement.h: * html/HTMLHtmlElement.h: * html/HTMLImageElement.h: * html/HTMLImageLoader.h: * html/HTMLInputElement.h: * html/HTMLIsIndexElement.h: * html/HTMLKeygenElement.h: * html/HTMLLIElement.h: * html/HTMLLabelElement.h: * html/HTMLLegendElement.h: * html/HTMLLinkElement.h: * html/HTMLMapElement.h: * html/HTMLMarqueeElement.h: * html/HTMLMenuElement.h: * html/HTMLMetaElement.h: * html/HTMLModElement.h: * html/HTMLNameCollection.h: * html/HTMLOListElement.h: * html/HTMLObjectElement.h: * html/HTMLOptGroupElement.h: * html/HTMLOptionElement.h: * html/HTMLOptionsCollection.h: * html/HTMLParagraphElement.h: * html/HTMLParamElement.h: * html/HTMLParser.h: * html/HTMLPlugInElement.h: * html/HTMLPreElement.h: * html/HTMLQuoteElement.h: * html/HTMLScriptElement.h: * html/HTMLSelectElement.h: * html/HTMLStyleElement.h: * html/HTMLTableCaptionElement.h: * html/HTMLTableCellElement.h: * html/HTMLTableColElement.h: * html/HTMLTableElement.h: * html/HTMLTablePartElement.h: * html/HTMLTableRowElement.h: * html/HTMLTableSectionElement.h: * html/HTMLTextAreaElement.h: * html/HTMLTextFieldInnerElement.h: * html/HTMLTitleElement.h: * html/HTMLUListElement.h: * ksvg2/css/SVGRenderStyle.h: * ksvg2/css/SVGRenderStyleDefs.h: * ksvg2/events/JSSVGLazyEventListener.h: * ksvg2/events/SVGZoomEvent.h: * ksvg2/misc/KCanvasRenderingStyle.h: * ksvg2/misc/PointerEventsHitRules.h: * ksvg2/misc/SVGDocumentExtensions.h: * ksvg2/misc/SVGImageLoader.h: * ksvg2/misc/TimeScheduler.h: * ksvg2/svg/GradientAttributes.h: * ksvg2/svg/LinearGradientAttributes.h: * ksvg2/svg/PatternAttributes.h: * ksvg2/svg/RadialGradientAttributes.h: * ksvg2/svg/SVGAElement.h: * ksvg2/svg/SVGAngle.h: * ksvg2/svg/SVGAnimateColorElement.h: * ksvg2/svg/SVGAnimateElement.h: * ksvg2/svg/SVGAnimateMotionElement.h: * ksvg2/svg/SVGAnimateTransformElement.h: * ksvg2/svg/SVGAnimatedPathData.h: * ksvg2/svg/SVGAnimatedPoints.h: * ksvg2/svg/SVGAnimatedTemplate.h: * ksvg2/svg/SVGAnimationElement.h: * ksvg2/svg/SVGCircleElement.h: * ksvg2/svg/SVGClipPathElement.h: * ksvg2/svg/SVGColor.h: * ksvg2/svg/SVGComponentTransferFunctionElement.h: * ksvg2/svg/SVGCursorElement.h: * ksvg2/svg/SVGDOMImplementation.h: * ksvg2/svg/SVGDefsElement.h: * ksvg2/svg/SVGDescElement.h: * ksvg2/svg/SVGDocument.h: * ksvg2/svg/SVGElement.h: * ksvg2/svg/SVGElementInstance.h: * ksvg2/svg/SVGElementInstanceList.h: * ksvg2/svg/SVGEllipseElement.h: * ksvg2/svg/SVGExternalResourcesRequired.h: * ksvg2/svg/SVGFEBlendElement.h: * ksvg2/svg/SVGFEColorMatrixElement.h: * ksvg2/svg/SVGFEComponentTransferElement.h: * ksvg2/svg/SVGFECompositeElement.h: * ksvg2/svg/SVGFEDiffuseLightingElement.h: * ksvg2/svg/SVGFEDisplacementMapElement.h: * ksvg2/svg/SVGFEDistantLightElement.h: * ksvg2/svg/SVGFEFloodElement.h: * ksvg2/svg/SVGFEFuncAElement.h: * ksvg2/svg/SVGFEFuncBElement.h: * ksvg2/svg/SVGFEFuncGElement.h: * ksvg2/svg/SVGFEFuncRElement.h: * ksvg2/svg/SVGFEGaussianBlurElement.h: * ksvg2/svg/SVGFEImageElement.h: * ksvg2/svg/SVGFELightElement.h: * ksvg2/svg/SVGFEMergeElement.h: * ksvg2/svg/SVGFEMergeNodeElement.h: * ksvg2/svg/SVGFEOffsetElement.h: * ksvg2/svg/SVGFEPointLightElement.h: * ksvg2/svg/SVGFESpecularLightingElement.h: * ksvg2/svg/SVGFESpotLightElement.h: * ksvg2/svg/SVGFETileElement.h: * ksvg2/svg/SVGFETurbulenceElement.h: * ksvg2/svg/SVGFilterElement.h: * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h: * ksvg2/svg/SVGFitToViewBox.h: * ksvg2/svg/SVGForeignObjectElement.h: * ksvg2/svg/SVGGElement.h: * ksvg2/svg/SVGGradientElement.h: * ksvg2/svg/SVGImageElement.h: * ksvg2/svg/SVGLangSpace.h: * ksvg2/svg/SVGLength.h: * ksvg2/svg/SVGLengthList.h: * ksvg2/svg/SVGLineElement.h: * ksvg2/svg/SVGLinearGradientElement.h: * ksvg2/svg/SVGList.h: * ksvg2/svg/SVGListTraits.h: * ksvg2/svg/SVGLocatable.h: * ksvg2/svg/SVGMarkerElement.h: * ksvg2/svg/SVGMaskElement.h: * ksvg2/svg/SVGMetadataElement.h: * ksvg2/svg/SVGNumberList.h: * ksvg2/svg/SVGPaint.h: * ksvg2/svg/SVGParserUtilities.h: * ksvg2/svg/SVGPathElement.h: * ksvg2/svg/SVGPathSeg.h: * ksvg2/svg/SVGPathSegArc.h: * ksvg2/svg/SVGPathSegClosePath.h: * ksvg2/svg/SVGPathSegCurvetoCubic.h: * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h: * ksvg2/svg/SVGPathSegCurvetoQuadratic.h: * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h: * ksvg2/svg/SVGPathSegLineto.h: * ksvg2/svg/SVGPathSegLinetoHorizontal.h: * ksvg2/svg/SVGPathSegLinetoVertical.h: * ksvg2/svg/SVGPathSegList.h: * ksvg2/svg/SVGPathSegMoveto.h: * ksvg2/svg/SVGPatternElement.h: * ksvg2/svg/SVGPointList.h: * ksvg2/svg/SVGPolyElement.h: * ksvg2/svg/SVGPolygonElement.h: * ksvg2/svg/SVGPolylineElement.h: * ksvg2/svg/SVGPreserveAspectRatio.h: * ksvg2/svg/SVGRadialGradientElement.h: * ksvg2/svg/SVGRectElement.h: * ksvg2/svg/SVGRenderingIntent.h: * ksvg2/svg/SVGSVGElement.h: * ksvg2/svg/SVGScriptElement.h: * ksvg2/svg/SVGSetElement.h: * ksvg2/svg/SVGStopElement.h: * ksvg2/svg/SVGStringList.h: * ksvg2/svg/SVGStylable.h: * ksvg2/svg/SVGStyleElement.h: * ksvg2/svg/SVGStyledElement.h: * ksvg2/svg/SVGStyledLocatableElement.h: * ksvg2/svg/SVGStyledTransformableElement.h: * ksvg2/svg/SVGSwitchElement.h: * ksvg2/svg/SVGSymbolElement.h: * ksvg2/svg/SVGTRefElement.h: * ksvg2/svg/SVGTSpanElement.h: * ksvg2/svg/SVGTests.h: * ksvg2/svg/SVGTextContentElement.h: * ksvg2/svg/SVGTextElement.h: * ksvg2/svg/SVGTextPositioningElement.h: * ksvg2/svg/SVGTitleElement.h: * ksvg2/svg/SVGTransform.h: * ksvg2/svg/SVGTransformList.h: * ksvg2/svg/SVGTransformable.h: * ksvg2/svg/SVGURIReference.h: * ksvg2/svg/SVGUnitTypes.h: * ksvg2/svg/SVGUseElement.h: * ksvg2/svg/SVGViewElement.h: * ksvg2/svg/SVGZoomAndPan.h: * loader/CachedCSSStyleSheet.h: * loader/CachedImage.h: * loader/CachedXSLStyleSheet.h: * loader/DocumentLoader.h: * loader/Request.h: * loader/SubresourceLoader.h: * loader/icon/IconDataCache.h: * loader/icon/IconDatabase.h: * loader/icon/IconLoader.h: * loader/icon/SQLDatabase.h: * loader/icon/SQLStatement.h: * loader/icon/SQLTransaction.h: * page/Frame.h: * page/FrameLoadRequest.h: * page/FrameTree.h: * page/FrameView.h: * page/PageState.h: * page/Plugin.h: * page/qt/FrameQt.h: * page/qt/FrameQtClient.h: * platform/Arena.h: * platform/ArrayImpl.h: * platform/Cursor.h: * platform/DeprecatedArray.h: * platform/DeprecatedCString.h: * platform/FileChooser.h: * platform/Font.h: * platform/FontCache.h: * platform/FontData.h: * platform/FontDescription.h: * platform/FontFamily.h: * platform/GlyphBuffer.h: * platform/GlyphMap.h: * platform/GlyphWidthMap.h: * platform/Logging.h: * platform/Pasteboard.h: * platform/PlatformString.h: * platform/PlugInInfoStore.h: * platform/PopupMenu.h: * platform/PopupMenuClient.h: * platform/ScrollBar.h: * platform/ScrollView.h: * platform/SearchPopupMenu.h: * platform/Shared.h: * platform/Sound.h: * platform/SystemTime.h: * platform/Timer.h: * platform/Widget.h: * platform/cf/RetainPtr.h: * platform/gdk/ChromeClientGdk.h: * platform/gdk/FontPlatformData.h: * platform/gdk/FrameGdk.h: * platform/gdk/KeyboardCodes.h: * platform/gdk/RenderPopupMenuGdk.h: * platform/gdk/RenderThemeGdk.h: * platform/graphics/BitmapImage.h: * platform/graphics/Color.h: * platform/graphics/FloatPoint.h: * platform/graphics/FloatPoint3D.h: * platform/graphics/FloatRect.h: * platform/graphics/Icon.h: * platform/graphics/Image.h: * platform/graphics/ImageAnimationObserver.h: * platform/graphics/ImageBuffer.h: * platform/graphics/ImageSource.h: * platform/graphics/IntPoint.h: * platform/graphics/IntRect.h: * platform/graphics/IntSize.h: * platform/graphics/IntSizeHash.h: * platform/graphics/PathTraversalState.h: * platform/graphics/Pen.h: * platform/graphics/qt/ImageDecoderQt.h: * platform/graphics/svg/SVGImage.h: * platform/graphics/svg/SVGImageEmptyClients.h: * platform/graphics/svg/SVGPaintServer.h: * platform/graphics/svg/SVGPaintServerGradient.h: * platform/graphics/svg/SVGPaintServerLinearGradient.h: * platform/graphics/svg/SVGPaintServerPattern.h: * platform/graphics/svg/SVGPaintServerRadialGradient.h: * platform/graphics/svg/SVGPaintServerSolid.h: * platform/graphics/svg/SVGResource.h: * platform/graphics/svg/SVGResourceClipper.h: * platform/graphics/svg/SVGResourceFilter.h: * platform/graphics/svg/SVGResourceMarker.h: * platform/graphics/svg/SVGResourceMasker.h: * platform/graphics/svg/cg/CgSupport.h: * platform/graphics/svg/filters/SVGDistantLightSource.h: * platform/graphics/svg/filters/SVGFEBlend.h: * platform/graphics/svg/filters/SVGFEColorMatrix.h: * platform/graphics/svg/filters/SVGFEComponentTransfer.h: * platform/graphics/svg/filters/SVGFEComposite.h: * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: * platform/graphics/svg/filters/SVGFEDisplacementMap.h: * platform/graphics/svg/filters/SVGFEFlood.h: * platform/graphics/svg/filters/SVGFEGaussianBlur.h: * platform/graphics/svg/filters/SVGFEImage.h: * platform/graphics/svg/filters/SVGFEMerge.h: * platform/graphics/svg/filters/SVGFEMorphology.h: * platform/graphics/svg/filters/SVGFEOffset.h: * platform/graphics/svg/filters/SVGFESpecularLighting.h: * platform/graphics/svg/filters/SVGFETile.h: * platform/graphics/svg/filters/SVGFETurbulence.h: * platform/graphics/svg/filters/SVGFilterEffect.h: * platform/graphics/svg/filters/SVGLightSource.h: * platform/graphics/svg/filters/SVGPointLightSource.h: * platform/graphics/svg/filters/SVGSpotLightSource.h: * platform/mac/FontPlatformData.h: * platform/mac/PlatformScrollBar.h: * platform/network/AuthenticationChallenge.h: * platform/network/Credential.h: * platform/network/HTTPHeaderMap.h: * platform/network/ProtectionSpace.h: * platform/network/ResourceError.h: * platform/network/ResourceRequest.h: * platform/network/ResourceResponse.h: * platform/network/cf/FormDataStreamCFNet.h: * platform/network/cf/ResourceRequestCFNet.h: * platform/network/cf/ResourceResponseCFNet.h: * platform/network/gdk/ResourceHandleManager.h: * platform/network/mac/AuthenticationMac.h: * platform/network/mac/FormDataStreamMac.h: * platform/network/qt/ResourceHandleManagerKDE.h: * platform/network/qt/ResourceHandleManagerQt.h: * platform/network/win/ResourceHandleWin.h: * platform/qt/FontPlatformData.h: * platform/qt/KeyboardCodes.h: * platform/qt/PlatformScrollBar.h: * platform/qt/ScrollViewCanvasQt.h: * platform/qt/SharedTimerQt.h: * platform/win/FontPlatformData.h: * platform/win/PlatformScrollBar.h: * rendering/AutoTableLayout.h: * rendering/HitTestRequest.h: * rendering/HitTestResult.h: * rendering/InlineBox.h: * rendering/InlineFlowBox.h: * rendering/Length.h: * rendering/ListMarkerBox.h: * rendering/RenderBox.h: * rendering/RenderMenuList.h: * rendering/RenderPart.h: * rendering/RenderPartObject.h: * rendering/RenderPath.h: * rendering/RenderReplaced.h: * rendering/RenderSVGContainer.h: * rendering/RenderSVGImage.h: * rendering/RenderSVGInline.h: * rendering/RenderSVGInlineText.h: * rendering/RenderSVGTSpan.h: * rendering/RenderSVGText.h: * rendering/RenderStyle.h: * rendering/RenderTableCol.h: * rendering/RenderThemeWin.h: * rendering/bidi.h: * xml/DOMParser.h: * xml/XPathEvaluator.h: * xml/XPathExpression.h: * xml/XPathExpressionNode.h: * xml/XPathFunctions.h: * xml/XPathNSResolver.h: * xml/XPathNamespace.h: * xml/XPathParser.h: * xml/XPathPath.h: * xml/XPathPredicate.h: * xml/XPathResult.h: * xml/XPathStep.h: * xml/XPathUtil.h: * xml/XPathValue.h: * xml/XPathVariableReference.h: * xml/XSLImportRule.h: * xml/XSLStyleSheet.h: * xml/XSLTProcessor.h: * xml/xmlhttprequest.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 17 Sep, 2006 1 commit
-
-
hyatt authored
using the correct size when generic families change (e.g., monospace to serif and vice versa). Reviewed by aroben Added fast/text/basic/generic-family-changes.html * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty): (WebCore::CSSStyleSelector::checkForGenericFamilyChange): (WebCore::CSSStyleSelector::fontSizeForKeyword): * css/cssstyleselector.h: * dom/Document.cpp: (WebCore::Document::recalcStyle): * platform/FontDescription.h: (WebCore::FontDescription::FontDescription): (WebCore::FontDescription::keywordSize): (WebCore::FontDescription::setKeywordSize): (WebCore::FontDescription::operator==): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16411 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 09 Aug, 2006 1 commit
-
-
ddkilzer authored
Reviewed by Darin. - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10247 REGRESSION: Unable to build webkit without SVG/XPATH * bindings/js/kjs_binding.cpp: (KJS::setDOMException): * bindings/js/kjs_dom.cpp: (KJS::toJS): * bindings/js/kjs_html.cpp: (KJS::HTMLElementFunction::callAsFunction): * bindings/js/kjs_proxy.cpp: * bindings/js/kjs_proxy.h: * bindings/objc/DOMInternal.h: * bindings/objc/DOMInternal.mm: (raiseDOMException): * bindings/objc/DOMXPath.mm: * bindings/objc/DOMXPathInternal.h: * bindings/scripts/CodeGeneratorJS.pm: * bridge/mac/WebCoreFrameBridge.mm: (+[WebCoreFrameBridge supportedNonImageMIMETypes]): * css/CSSGrammar.y: * css/CSSStyleDeclaration.cpp: (WebCore::propertyID): * css/cssparser.cpp: (WebCore::CSSParser::parseValue): * css/cssparser.h: * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::loadDefaultStyle): (WebCore::CSSStyleSelector::applyProperty): * css/cssstyleselector.h: * dom/Document.cpp: (WebCore::Document::Document): (WebCore::Document::~Document): (WebCore::Document::createElementNS): (WebCore::Document::implicitClose): (WebCore::Document::recalcStyleSelector): (WebCore::Document::createEvent): * dom/Document.h: * dom/Document.idl: * dom/Node.cpp: (WebCore::Node::createRendererIfNeeded): * dom/Node.h: * dom/XMLTokenizer.cpp: (WebCore::XMLTokenizer::endElementNs): (WebCore::XMLTokenizer::insertErrorMessageBlock): * html/HTMLEmbedElement.cpp: * html/HTMLEmbedElement.h: * html/HTMLObjectElement.cpp: * html/HTMLObjectElement.h: * kcanvas/KCanvasCreator.cpp: * kcanvas/KCanvasCreator.h: * kcanvas/KCanvasFilters.cpp: * kcanvas/KCanvasFilters.h: * kcanvas/KCanvasImage.h: * kcanvas/KCanvasMatrix.cpp: * kcanvas/KCanvasMatrix.h: * kcanvas/KCanvasPath.cpp: * kcanvas/KCanvasPath.h: * kcanvas/KCanvasResourceListener.h: * kcanvas/KCanvasResources.cpp: * kcanvas/KCanvasResources.h: * kcanvas/KCanvasTreeDebug.cpp: * kcanvas/RenderForeignObject.cpp: * kcanvas/RenderForeignObject.h: * kcanvas/RenderPath.cpp: * kcanvas/RenderPath.h: * kcanvas/RenderSVGContainer.cpp: * kcanvas/RenderSVGContainer.h: * kcanvas/RenderSVGImage.cpp: * kcanvas/RenderSVGImage.h: * kcanvas/RenderSVGText.cpp: * kcanvas/RenderSVGText.h: * kcanvas/device/KRenderingDevice.cpp: * kcanvas/device/KRenderingDevice.h: * kcanvas/device/KRenderingFillPainter.cpp: * kcanvas/device/KRenderingFillPainter.h: * kcanvas/device/KRenderingPaintServer.h: * kcanvas/device/KRenderingPaintServerGradient.cpp: * kcanvas/device/KRenderingPaintServerGradient.h: * kcanvas/device/KRenderingPaintServerPattern.cpp: * kcanvas/device/KRenderingPaintServerPattern.h: * kcanvas/device/KRenderingPaintServerSolid.cpp: * kcanvas/device/KRenderingPaintServerSolid.h: * kcanvas/device/KRenderingStrokePainter.cpp: * kcanvas/device/KRenderingStrokePainter.h: * kcanvas/device/quartz/KCanvasFilterQuartz.h: * kcanvas/device/quartz/KCanvasFilterQuartz.mm: * kcanvas/device/quartz/KCanvasItemQuartz.mm: * kcanvas/device/quartz/KCanvasMaskerQuartz.mm: * kcanvas/device/quartz/KCanvasPathQuartz.mm: * kcanvas/device/quartz/KCanvasResourcesQuartz.mm: * kcanvas/device/quartz/KRenderingDeviceQuartz.h: * kcanvas/device/quartz/KRenderingDeviceQuartz.mm: * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm: * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm: * kcanvas/device/quartz/QuartzSupport.h: * kcanvas/device/quartz/QuartzSupport.mm: * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp: * ksvg2/bindings/js/JSSVGElementWrapperFactory.h: * ksvg2/css/SVGCSSParser.cpp: * ksvg2/css/SVGCSSStyleSelector.cpp: * ksvg2/css/SVGRenderStyle.cpp: * ksvg2/css/SVGRenderStyle.h: * ksvg2/css/SVGRenderStyleDefs.cpp: * ksvg2/css/SVGRenderStyleDefs.h: * ksvg2/ecma/GlobalObject.cpp: * ksvg2/ecma/GlobalObject.h: * ksvg2/events/JSSVGLazyEventListener.cpp: * ksvg2/events/JSSVGLazyEventListener.h: * ksvg2/events/SVGZoomEvent.cpp: * ksvg2/events/SVGZoomEvent.h: * ksvg2/ksvg.h: * ksvg2/misc/KCanvasRenderingStyle.cpp: * ksvg2/misc/KCanvasRenderingStyle.h: * ksvg2/misc/KSVGTimeScheduler.cpp: * ksvg2/misc/KSVGTimeScheduler.h: * ksvg2/misc/SVGDocumentExtensions.cpp: * ksvg2/misc/SVGDocumentExtensions.h: * ksvg2/misc/SVGImageLoader.cpp: * ksvg2/misc/SVGImageLoader.h: * ksvg2/svg/DOMList.h: * ksvg2/svg/SVGAElement.cpp: * ksvg2/svg/SVGAElement.h: * ksvg2/svg/SVGAngle.cpp: * ksvg2/svg/SVGAngle.h: * ksvg2/svg/SVGAnimateColorElement.cpp: * ksvg2/svg/SVGAnimateColorElement.h: * ksvg2/svg/SVGAnimateElement.cpp: * ksvg2/svg/SVGAnimateElement.h: * ksvg2/svg/SVGAnimateTransformElement.cpp: * ksvg2/svg/SVGAnimateTransformElement.h: * ksvg2/svg/SVGAnimatedAngle.cpp: * ksvg2/svg/SVGAnimatedAngle.h: * ksvg2/svg/SVGAnimatedBoolean.cpp: * ksvg2/svg/SVGAnimatedBoolean.h: * ksvg2/svg/SVGAnimatedColor.cpp: * ksvg2/svg/SVGAnimatedColor.h: * ksvg2/svg/SVGAnimatedEnumeration.cpp: * ksvg2/svg/SVGAnimatedEnumeration.h: * ksvg2/svg/SVGAnimatedInteger.cpp: * ksvg2/svg/SVGAnimatedInteger.h: * ksvg2/svg/SVGAnimatedLength.cpp: * ksvg2/svg/SVGAnimatedLength.h: * ksvg2/svg/SVGAnimatedLengthList.cpp: * ksvg2/svg/SVGAnimatedLengthList.h: * ksvg2/svg/SVGAnimatedNumber.cpp: * ksvg2/svg/SVGAnimatedNumber.h: * ksvg2/svg/SVGAnimatedNumberList.cpp: * ksvg2/svg/SVGAnimatedNumberList.h: * ksvg2/svg/SVGAnimatedPathData.cpp: * ksvg2/svg/SVGAnimatedPathData.h: * ksvg2/svg/SVGAnimatedPoints.cpp: * ksvg2/svg/SVGAnimatedPoints.h: * ksvg2/svg/SVGAnimatedPreserveAspectRatio.cpp: * ksvg2/svg/SVGAnimatedPreserveAspectRatio.h: * ksvg2/svg/SVGAnimatedRect.cpp: * ksvg2/svg/SVGAnimatedRect.h: * ksvg2/svg/SVGAnimatedString.cpp: * ksvg2/svg/SVGAnimatedString.h: * ksvg2/svg/SVGAnimatedTemplate.h: * ksvg2/svg/SVGAnimatedTransformList.cpp: * ksvg2/svg/SVGAnimatedTransformList.h: * ksvg2/svg/SVGAnimationElement.cpp: * ksvg2/svg/SVGAnimationElement.h: * ksvg2/svg/SVGCircleElement.cpp: * ksvg2/svg/SVGCircleElement.h: * ksvg2/svg/SVGClipPathElement.cpp: * ksvg2/svg/SVGClipPathElement.h: * ksvg2/svg/SVGColor.cpp: * ksvg2/svg/SVGColor.h: * ksvg2/svg/SVGComponentTransferFunctionElement.cpp: * ksvg2/svg/SVGComponentTransferFunctionElement.h: * ksvg2/svg/SVGCursorElement.cpp: * ksvg2/svg/SVGCursorElement.h: * ksvg2/svg/SVGDOMImplementation.cpp: * ksvg2/svg/SVGDOMImplementation.h: * ksvg2/svg/SVGDefsElement.cpp: * ksvg2/svg/SVGDefsElement.h: * ksvg2/svg/SVGDescElement.cpp: * ksvg2/svg/SVGDescElement.h: * ksvg2/svg/SVGDocument.cpp: * ksvg2/svg/SVGDocument.h: * ksvg2/svg/SVGElement.cpp: * ksvg2/svg/SVGElement.h: * ksvg2/svg/SVGElementInstance.cpp: * ksvg2/svg/SVGElementInstance.h: * ksvg2/svg/SVGElementInstanceList.cpp: * ksvg2/svg/SVGElementInstanceList.h: * ksvg2/svg/SVGEllipseElement.cpp: * ksvg2/svg/SVGEllipseElement.h: * ksvg2/svg/SVGExternalResourcesRequired.cpp: * ksvg2/svg/SVGExternalResourcesRequired.h: * ksvg2/svg/SVGFEBlendElement.cpp: * ksvg2/svg/SVGFEBlendElement.h: * ksvg2/svg/SVGFEColorMatrixElement.cpp: * ksvg2/svg/SVGFEColorMatrixElement.h: * ksvg2/svg/SVGFEComponentTransferElement.cpp: * ksvg2/svg/SVGFEComponentTransferElement.h: * ksvg2/svg/SVGFECompositeElement.cpp: * ksvg2/svg/SVGFECompositeElement.h: * ksvg2/svg/SVGFEDiffuseLightingElement.cpp: * ksvg2/svg/SVGFEDiffuseLightingElement.h: * ksvg2/svg/SVGFEDisplacementMapElement.cpp: * ksvg2/svg/SVGFEDisplacementMapElement.h: * ksvg2/svg/SVGFEDistantLightElement.cpp: * ksvg2/svg/SVGFEDistantLightElement.h: * ksvg2/svg/SVGFEFloodElement.cpp: * ksvg2/svg/SVGFEFloodElement.h: * ksvg2/svg/SVGFEFuncAElement.cpp: * ksvg2/svg/SVGFEFuncAElement.h: * ksvg2/svg/SVGFEFuncBElement.cpp: * ksvg2/svg/SVGFEFuncBElement.h: * ksvg2/svg/SVGFEFuncGElement.cpp: * ksvg2/svg/SVGFEFuncGElement.h: * ksvg2/svg/SVGFEFuncRElement.cpp: * ksvg2/svg/SVGFEFuncRElement.h: * ksvg2/svg/SVGFEGaussianBlurElement.cpp: * ksvg2/svg/SVGFEGaussianBlurElement.h: * ksvg2/svg/SVGFEImageElement.cpp: * ksvg2/svg/SVGFEImageElement.h: * ksvg2/svg/SVGFELightElement.cpp: * ksvg2/svg/SVGFELightElement.h: * ksvg2/svg/SVGFEMergeElement.cpp: * ksvg2/svg/SVGFEMergeElement.h: * ksvg2/svg/SVGFEMergeNodeElement.cpp: * ksvg2/svg/SVGFEMergeNodeElement.h: * ksvg2/svg/SVGFEOffsetElement.cpp: * ksvg2/svg/SVGFEOffsetElement.h: * ksvg2/svg/SVGFEPointLightElement.cpp: * ksvg2/svg/SVGFEPointLightElement.h: * ksvg2/svg/SVGFESpecularLightingElement.cpp: * ksvg2/svg/SVGFESpecularLightingElement.h: * ksvg2/svg/SVGFESpotLightElement.cpp: * ksvg2/svg/SVGFESpotLightElement.h: * ksvg2/svg/SVGFETileElement.cpp: * ksvg2/svg/SVGFETileElement.h: * ksvg2/svg/SVGFETurbulenceElement.cpp: * ksvg2/svg/SVGFETurbulenceElement.h: * ksvg2/svg/SVGFilterElement.cpp: * ksvg2/svg/SVGFilterElement.h: * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp: * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h: * ksvg2/svg/SVGFitToViewBox.cpp: * ksvg2/svg/SVGFitToViewBox.h: * ksvg2/svg/SVGForeignObjectElement.cpp: * ksvg2/svg/SVGForeignObjectElement.h: * ksvg2/svg/SVGGElement.cpp: * ksvg2/svg/SVGGElement.h: * ksvg2/svg/SVGGradientElement.cpp: * ksvg2/svg/SVGGradientElement.h: * ksvg2/svg/SVGHelper.cpp: * ksvg2/svg/SVGHelper.h: * ksvg2/svg/SVGImageElement.cpp: * ksvg2/svg/SVGImageElement.h: * ksvg2/svg/SVGLangSpace.cpp: * ksvg2/svg/SVGLangSpace.h: * ksvg2/svg/SVGLength.cpp: * ksvg2/svg/SVGLength.h: * ksvg2/svg/SVGLengthList.cpp: * ksvg2/svg/SVGLengthList.h: * ksvg2/svg/SVGLineElement.cpp: * ksvg2/svg/SVGLineElement.h: * ksvg2/svg/SVGLinearGradientElement.cpp: * ksvg2/svg/SVGLinearGradientElement.h: * ksvg2/svg/SVGList.h: * ksvg2/svg/SVGLocatable.cpp: * ksvg2/svg/SVGLocatable.h: * ksvg2/svg/SVGMarkerElement.cpp: * ksvg2/svg/SVGMarkerElement.h: * ksvg2/svg/SVGMaskElement.cpp: * ksvg2/svg/SVGMaskElement.h: * ksvg2/svg/SVGMatrix.cpp: * ksvg2/svg/SVGMatrix.h: * ksvg2/svg/SVGNumber.cpp: * ksvg2/svg/SVGNumber.h: * ksvg2/svg/SVGNumberList.cpp: * ksvg2/svg/SVGNumberList.h: * ksvg2/svg/SVGPaint.cpp: * ksvg2/svg/SVGPaint.h: * ksvg2/svg/SVGPathElement.cpp: * ksvg2/svg/SVGPathElement.h: * ksvg2/svg/SVGPathSeg.cpp: * ksvg2/svg/SVGPathSeg.h: * ksvg2/svg/SVGPathSegArc.cpp: * ksvg2/svg/SVGPathSegArc.h: * ksvg2/svg/SVGPathSegClosePath.cpp: * ksvg2/svg/SVGPathSegClosePath.h: * ksvg2/svg/SVGPathSegCurvetoCubic.cpp: * ksvg2/svg/SVGPathSegCurvetoCubic.h: * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp: * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h: * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp: * ksvg2/svg/SVGPathSegCurvetoQuadratic.h: * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp: * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h: * ksvg2/svg/SVGPathSegLineto.cpp: * ksvg2/svg/SVGPathSegLineto.h: * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp: * ksvg2/svg/SVGPathSegLinetoHorizontal.h: * ksvg2/svg/SVGPathSegLinetoVertical.cpp: * ksvg2/svg/SVGPathSegLinetoVertical.h: * ksvg2/svg/SVGPathSegList.cpp: * ksvg2/svg/SVGPathSegList.h: * ksvg2/svg/SVGPathSegMoveto.cpp: * ksvg2/svg/SVGPathSegMoveto.h: * ksvg2/svg/SVGPatternElement.cpp: * ksvg2/svg/SVGPatternElement.h: * ksvg2/svg/SVGPoint.cpp: * ksvg2/svg/SVGPoint.h: * ksvg2/svg/SVGPointList.cpp: * ksvg2/svg/SVGPointList.h: * ksvg2/svg/SVGPolyElement.cpp: * ksvg2/svg/SVGPolyElement.h: * ksvg2/svg/SVGPolygonElement.cpp: * ksvg2/svg/SVGPolygonElement.h: * ksvg2/svg/SVGPolylineElement.cpp: * ksvg2/svg/SVGPolylineElement.h: * ksvg2/svg/SVGPreserveAspectRatio.cpp: * ksvg2/svg/SVGPreserveAspectRatio.h: * ksvg2/svg/SVGRadialGradientElement.cpp: * ksvg2/svg/SVGRadialGradientElement.h: * ksvg2/svg/SVGRect.cpp: * ksvg2/svg/SVGRect.h: * ksvg2/svg/SVGRectElement.cpp: * ksvg2/svg/SVGRectElement.h: * ksvg2/svg/SVGSVGElement.cpp: * ksvg2/svg/SVGSVGElement.h: * ksvg2/svg/SVGScriptElement.cpp: * ksvg2/svg/SVGScriptElement.h: * ksvg2/svg/SVGSetElement.cpp: * ksvg2/svg/SVGSetElement.h: * ksvg2/svg/SVGStopElement.cpp: * ksvg2/svg/SVGStopElement.h: * ksvg2/svg/SVGStringList.cpp: * ksvg2/svg/SVGStringList.h: * ksvg2/svg/SVGStylable.cpp: * ksvg2/svg/SVGStylable.h: * ksvg2/svg/SVGStyleElement.cpp: * ksvg2/svg/SVGStyleElement.h: * ksvg2/svg/SVGStyledElement.cpp: * ksvg2/svg/SVGStyledElement.h: * ksvg2/svg/SVGStyledLocatableElement.cpp: * ksvg2/svg/SVGStyledLocatableElement.h: * ksvg2/svg/SVGStyledTransformableElement.cpp: * ksvg2/svg/SVGStyledTransformableElement.h: * ksvg2/svg/SVGSwitchElement.cpp: * ksvg2/svg/SVGSwitchElement.h: * ksvg2/svg/SVGSymbolElement.cpp: * ksvg2/svg/SVGSymbolElement.h: * ksvg2/svg/SVGTRefElement.cpp: * ksvg2/svg/SVGTRefElement.h: * ksvg2/svg/SVGTSpanElement.cpp: * ksvg2/svg/SVGTSpanElement.h: * ksvg2/svg/SVGTests.cpp: * ksvg2/svg/SVGTests.h: * ksvg2/svg/SVGTextContentElement.cpp: * ksvg2/svg/SVGTextContentElement.h: * ksvg2/svg/SVGTextElement.cpp: * ksvg2/svg/SVGTextElement.h: * ksvg2/svg/SVGTextPositioningElement.cpp: * ksvg2/svg/SVGTextPositioningElement.h: * ksvg2/svg/SVGTitleElement.cpp: * ksvg2/svg/SVGTitleElement.h: * ksvg2/svg/SVGTransform.cpp: * ksvg2/svg/SVGTransform.h: * ksvg2/svg/SVGTransformList.cpp: * ksvg2/svg/SVGTransformList.h: * ksvg2/svg/SVGTransformable.cpp: * ksvg2/svg/SVGTransformable.h: * ksvg2/svg/SVGURIReference.cpp: * ksvg2/svg/SVGURIReference.h: * ksvg2/svg/SVGUseElement.cpp: * ksvg2/svg/SVGUseElement.h: * ksvg2/svg/SVGViewElement.cpp: * ksvg2/svg/SVGViewElement.h: * ksvg2/svg/SVGZoomAndPan.cpp: * ksvg2/svg/SVGZoomAndPan.h: * ksvg2/svg/svgpathparser.cpp: * ksvg2/svg/svgpathparser.h: * page/DOMWindow.idl: * page/Frame.cpp: (WebCore::Frame::Frame): (WebCore::Frame::begin): (WebCore::Frame::pauseTimeouts): (WebCore::Frame::resumeTimeouts): * platform/GraphicsContext.h: * platform/cg/GraphicsContextCG.cpp: * rendering/RenderLayer.cpp: (WebCore::RenderLayer::isTransparent): * rendering/RenderObject.cpp: (WebCore::RenderObject::containingBlock): * rendering/RenderObject.h: * rendering/RenderStyle.cpp: (WebCore::RenderStyle::RenderStyle): (WebCore::RenderStyle::inheritFrom): (WebCore::RenderStyle::operator==): (WebCore::RenderStyle::inheritedNotEqual): (WebCore::RenderStyle::diff): * rendering/RenderStyle.h: * rendering/RenderTreeAsText.cpp: (WebCore::write): (WebCore::externalRepresentation): * xpath/XPathEvaluator.cpp: * xpath/XPathEvaluator.h: * xpath/XPathExpression.cpp: * xpath/XPathExpression.h: * xpath/XPathNSResolver.cpp: * xpath/XPathNSResolver.h: * xpath/XPathNamespace.cpp: * xpath/XPathNamespace.h: * xpath/XPathResult.cpp: * xpath/XPathResult.h: * xpath/impl/XPathExpressionNode.cpp: * xpath/impl/XPathExpressionNode.h: * xpath/impl/XPathFunctions.cpp: * xpath/impl/XPathFunctions.h: * xpath/impl/XPathGrammar.y: * xpath/impl/XPathParser.cpp: * xpath/impl/XPathParser.h: * xpath/impl/XPathPath.cpp: * xpath/impl/XPathPath.h: * xpath/impl/XPathPredicate.cpp: * xpath/impl/XPathPredicate.h: * xpath/impl/XPathStep.cpp: * xpath/impl/XPathStep.h: * xpath/impl/XPathUtil.cpp: * xpath/impl/XPathUtil.h: * xpath/impl/XPathValue.cpp: * xpath/impl/XPathValue.h: * xpath/impl/XPathVariableReference.cpp: * xpath/impl/XPathVariableReference.h: Change all #if SVG_SUPPORT to #ifdef SVG_SUPPORT and #if XPATH_SUPPORT to #ifdef XPATH_SUPPORT (except for one #if !SVG_SUPPORT to a #ifndef SVG_SUPPORT in RenderTreeAsText.cpp) git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 09 Jul, 2006 2 commits
-
-
darin authored
- put more into the WebCore namespace - removed unused code for plain text fields Put more classes, class templates, enums, functions, and constants into the WebCore namespace, including all the headers in the platform directory. Removed lots of unneeded "WebCore::" qualifiers and "using" directives. Added some "WebCore::" qualifiers in a few places. Removed "uses WebCore::" in headers that we said we'd remove "when everything is in the WebCore namespace". * bindings/js/JSDOMParser.cpp: * bindings/js/JSHTMLElementWrapperFactory.cpp: * bindings/js/JSXSLTProcessor.cpp: * bindings/js/kjs_binding.cpp: * bindings/js/kjs_css.cpp: * bindings/js/kjs_dom.cpp: * bindings/js/kjs_dom.h: * bindings/js/kjs_events.cpp: * bindings/js/kjs_proxy.h: * bindings/js/kjs_window.h: * bindings/objc/DOM.mm: * bridge/History.h: * bridge/JavaAppletWidget.h: * bridge/mac/FormDataMac.h: * bridge/mac/FormDataMac.mm: * bridge/mac/WebCoreAXObject.mm: * bridge/mac/WebCoreEncodings.mm: * bridge/mac/WebCoreFrameBridge.h: * bridge/mac/WebCoreIconDatabaseBridge.mm: * bridge/mac/WebCorePageState.h: * bridge/mac/WebCoreScriptDebugger.mm: * bridge/mac/WebCoreSettings.h: * css/CSSGrammar.y: * css/CSSPageRule.cpp: * css/CSSPageRule.h: * css/MediaList.cpp: * css/cssstyleselector.h: * dom/Clipboard.h: * dom/Document.cpp: * dom/Document.h: * dom/EventTargetNode.h: * dom/Node.cpp: * dom/Node.h: * dom/Position.h: * dom/Range.cpp: * dom/XMLTokenizer.cpp: * editing/AppendNodeCommand.h: * editing/ApplyStyleCommand.cpp: * editing/BreakBlockquoteCommand.cpp: * editing/BreakBlockquoteCommand.h: * editing/CompositeEditCommand.cpp: * editing/CompositeEditCommand.h: * editing/CreateLinkCommand.h: * editing/DeleteFromTextNodeCommand.h: * editing/DeleteSelectionCommand.h: * editing/FormatBlockCommand.h: * editing/HTMLInterchange.cpp: * editing/HTMLInterchange.h: * editing/IndentOutdentCommand.h: * editing/InsertIntoTextNodeCommand.h: * editing/InsertLineBreakCommand.h: * editing/InsertListCommand.h: * editing/InsertNodeBeforeCommand.h: * editing/InsertTextCommand.cpp: * editing/InsertTextCommand.h: * editing/JSEditor.cpp: * editing/JSEditor.h: * editing/JoinTextNodesCommand.h: * editing/MergeIdenticalElementsCommand.cpp: * editing/MergeIdenticalElementsCommand.h: * editing/ModifySelectionListLevel.h: * editing/MoveSelectionCommand.h: * editing/RebalanceWhitespaceCommand.h: * editing/RemoveNodeAttributeCommand.h: * editing/RemoveNodeCommand.h: * editing/RemoveNodePreservingChildrenCommand.h: * editing/ReplaceSelectionCommand.h: * editing/SetNodeAttributeCommand.h: * editing/SplitElementCommand.cpp: * editing/SplitElementCommand.h: * editing/SplitTextNodeCommand.cpp: * editing/SplitTextNodeCommand.h: * editing/SplitTextNodeContainingElementCommand.h: * editing/TypingCommand.cpp: * editing/TypingCommand.h: * editing/UnlinkCommand.h: * editing/VisiblePosition.cpp: * editing/WrapContentsInDummySpanCommand.cpp: * editing/WrapContentsInDummySpanCommand.h: * editing/markup.cpp: * editing/markup.h: * html/HTMLAnchorElement.cpp: * html/HTMLBodyElement.cpp: * html/HTMLButtonElement.h: * html/HTMLCollection.h: * html/HTMLDocument.h: * html/HTMLEmbedElement.cpp: * html/HTMLFormElement.cpp: * html/HTMLFormElement.h: * html/HTMLFrameElement.cpp: * html/HTMLFrameSetElement.cpp: * html/HTMLKeygenElement.cpp: * html/HTMLLabelElement.cpp: * html/HTMLObjectElement.cpp: * html/HTMLObjectElement.h: * html/HTMLTableElement.cpp: * html/HTMLTablePartElement.cpp: * icon/IconDatabase.h: * kcanvas/KCanvasPath.h: * kcanvas/KCanvasResources.cpp: * kcanvas/KCanvasResources.h: * kcanvas/KCanvasTreeDebug.cpp: * kcanvas/KCanvasTreeDebug.h: * kcanvas/RenderSVGContainer.cpp: * kcanvas/RenderSVGText.h: * kcanvas/device/KRenderingPaintServer.h: * kcanvas/device/KRenderingPaintServerGradient.h: * kcanvas/device/KRenderingPaintServerSolid.cpp: * ksvg2/misc/SVGImageLoader.cpp: * ksvg2/svg/SVGElement.cpp: * ksvg2/svg/SVGElement.h: * ksvg2/svg/SVGForeignObjectElement.cpp: * ksvg2/svg/SVGForeignObjectElement.h: * ksvg2/svg/SVGImageElement.cpp: * ksvg2/svg/SVGPoint.h: * ksvg2/svg/SVGStylable.h: * ksvg2/svg/SVGTRefElement.cpp: * ksvg2/svg/SVGTRefElement.h: * ksvg2/svg/SVGTSpanElement.cpp: * ksvg2/svg/SVGTSpanElement.h: * ksvg2/svg/SVGTextElement.h: * ksvg2/svg/svgpathparser.cpp: * ksvg2/svg/svgpathparser.h: * loader/Cache.h: * loader/DocLoader.h: * loader/LoaderFunctions.h: * loader/mac/LoaderFunctionsMac.mm: * page/Frame.h: * page/FrameView.h: * page/Page.h: * page/Settings.h: * platform/AffineTransform.cpp: * platform/AffineTransform.h: * platform/Arena.cpp: * platform/Arena.h: * platform/CookieJar.h: * platform/DeprecatedCString.cpp: * platform/DeprecatedCString.h: * platform/DeprecatedPtrList.h: * platform/DeprecatedPtrListImpl.cpp: * platform/DeprecatedPtrListImpl.h: * platform/DeprecatedPtrQueue.h: * platform/DeprecatedString.cpp: * platform/DeprecatedString.h: * platform/DeprecatedStringList.cpp: * platform/DeprecatedStringList.h: * platform/DeprecatedValueList.h: * platform/DeprecatedValueListImpl.cpp: * platform/DeprecatedValueListImpl.h: * platform/FileButton.h: * platform/FloatPoint.h: * platform/FloatRect.h: * platform/FloatSize.h: * platform/FontData.h: * platform/FontFallbackList.h: * platform/GraphicsContext.h: * platform/IntPoint.h: * platform/IntRect.h: * platform/IntSize.h: * platform/KURL.cpp: * platform/KURL.h: * platform/ListBox.h: * platform/Logging.cpp: * platform/Logging.h: * platform/Pen.h: * platform/PopUpButton.h: * platform/RegularExpression.cpp: * platform/RegularExpression.h: * platform/SSLKeyGenerator.h: * platform/ScrollBar.h: * platform/SegmentedString.h: * platform/Shared.h: * platform/Slider.h: * platform/StringImpl.h: * platform/TextBox.h: * platform/TextField.h: * platform/TextStream.cpp: * platform/TextStream.h: * platform/TransferJob.h: * platform/TransferJobClient.h: * platform/Widget.h: * platform/cg/AffineTransformCG.cpp: * platform/mac/ClipboardMac.h: * platform/mac/ClipboardMac.mm: * platform/mac/DeprecatedStringListMac.mm: * platform/mac/FontCacheMac.mm: * platform/mac/KURLMac.mm: * platform/mac/ListBoxMac.mm: * platform/mac/PopUpButtonMac.mm: * platform/mac/SSLKeyGeneratorMac.mm: * platform/mac/TextBoxMac.mm: * platform/mac/TextFieldMac.mm: * platform/mac/WebCoreTextArea.h: * platform/mac/WebCoreTextArea.mm: * platform/mac/WebCoreTextField.h: * platform/mac/WebCoreTextField.mm: * rendering/DeprecatedRenderSelect.h: * rendering/RenderArena.cpp: * rendering/RenderArena.h: * rendering/RenderBlock.cpp: * rendering/RenderBox.cpp: * rendering/RenderContainer.cpp: * rendering/RenderFlexibleBox.cpp: * rendering/RenderFlow.cpp: * rendering/RenderLayer.cpp: * rendering/RenderLineEdit.cpp: * rendering/RenderObject.h: * rendering/RenderStyle.cpp: * rendering/RenderStyle.h: * rendering/RenderText.cpp: * rendering/RenderTextFragment.cpp: * rendering/RenderTheme.h: * rendering/RenderTreeAsText.cpp: * rendering/RenderTreeAsText.h: * rendering/RenderView.h: * rendering/bidi.h: * xml/XSLStyleSheet.cpp: * xml/XSLTProcessor.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
- did the next pass of renaming (used do-webcore-rename script) this takes care of most of the remaining KWQ names (almost all) * WebCore+SVG/DOMList.h: * WebCore.vcproj/WebCore/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * WebCoreSources.bkl: * bindings/js/kjs_dom.cpp: * bindings/js/kjs_window.cpp: * bindings/objc/DOMHTML.mm: * bridge/mac/FrameMac.h: * bridge/mac/FrameMac.mm: * bridge/mac/WebCoreFrameBridge.mm: * bridge/mac/WebCoreSettings.h: * bridge/mac/WebCoreSettings.mm: * bridge/win/FrameWin.cpp: * css/CSSPrimitiveValue.cpp: * css/CSSValueKeywords.in: * css/MediaQueryEvaluator.cpp: * css/cssparser.cpp: * css/cssstyleselector.cpp: * css/cssstyleselector.h: * dom/CharacterData.cpp: * dom/CharacterData.h: * dom/Document.cpp: * dom/Element.cpp: * dom/Element.h: * dom/EventTargetNode.cpp: * dom/EventTargetNode.h: * dom/Node.cpp: * dom/Node.h: * dom/Position.cpp: * dom/ProcessingInstruction.cpp: * dom/QualifiedName.cpp: * dom/QualifiedName.h: * dom/XMLTokenizer.cpp: Added. * dom/xml_tokenizer.cpp: Removed. * dom/xml_tokenizer.h: Removed. * editing/EditAction.h: * editing/HTMLInterchange.cpp: * editing/HTMLInterchange.h: * editing/Selection.h: * editing/SelectionController.h: * editing/TextAffinity.h: * editing/TextIterator.cpp: * editing/TextIterator.h: * editing/VisiblePosition.h: * editing/htmlediting.cpp: * editing/markup.cpp: * editing/markup.h: * editing/visible_units.cpp: * editing/visible_units.h: * html/HTMLDocument.cpp: * html/HTMLFontElement.cpp: * html/HTMLInputElement.cpp: * html/HTMLKeygenElement.cpp: * html/HTMLSelectElement.h: * html/HTMLTextAreaElement.cpp: * html/HTMLTextFieldInnerElement.cpp: * html/HTMLTokenizer.cpp: * html/HTMLTokenizer.h: * kcanvas/KCanvasContainer.cpp: Removed. * kcanvas/KCanvasContainer.h: Removed. * kcanvas/KCanvasCreator.cpp: * kcanvas/KCanvasFilters.cpp: * kcanvas/KCanvasFilters.h: * kcanvas/KCanvasMatrix.cpp: * kcanvas/KCanvasMatrix.h: * kcanvas/KCanvasPath.cpp: * kcanvas/KCanvasPath.h: * kcanvas/KCanvasResources.cpp: * kcanvas/KCanvasResources.h: * kcanvas/KCanvasTreeDebug.cpp: * kcanvas/KCanvasTreeDebug.h: * kcanvas/RenderForeignObject.cpp: * kcanvas/RenderForeignObject.h: * kcanvas/RenderPath.cpp: * kcanvas/RenderPath.h: * kcanvas/RenderSVGContainer.cpp: Added. * kcanvas/RenderSVGContainer.h: Added. * kcanvas/RenderSVGImage.cpp: * kcanvas/RenderSVGImage.h: * kcanvas/RenderSVGText.cpp: * kcanvas/RenderSVGText.h: * kcanvas/device/KRenderingPaintServer.h: * kcanvas/device/KRenderingPaintServerGradient.cpp: * kcanvas/device/KRenderingPaintServerGradient.h: * kcanvas/device/KRenderingPaintServerPattern.cpp: * kcanvas/device/KRenderingPaintServerPattern.h: * kcanvas/device/KRenderingPaintServerSolid.cpp: * kcanvas/device/KRenderingPaintServerSolid.h: * kcanvas/device/quartz/KCanvasFilterQuartz.mm: * kcanvas/device/quartz/KCanvasItemQuartz.h: * kcanvas/device/quartz/KCanvasResourcesQuartz.h: * kcanvas/device/quartz/KRenderingDeviceQuartz.mm: * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm: * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm: * ksvg2/css/CSSValueKeywords.in: * ksvg2/css/SVGRenderStyleDefs.cpp: * ksvg2/misc/KCanvasRenderingStyle.cpp: * ksvg2/misc/KSVGTimeScheduler.cpp: * ksvg2/svg/SVGAElement.cpp: * ksvg2/svg/SVGAnimateTransformElement.cpp: * ksvg2/svg/SVGAnimateTransformElement.h: * ksvg2/svg/SVGGElement.cpp: * ksvg2/svg/SVGHelper.cpp: * ksvg2/svg/SVGHelper.h: * ksvg2/svg/SVGImageElement.cpp: * ksvg2/svg/SVGLinearGradientElement.cpp: * ksvg2/svg/SVGMarkerElement.cpp: * ksvg2/svg/SVGMaskElement.cpp: * ksvg2/svg/SVGMatrix.cpp: * ksvg2/svg/SVGMatrix.h: * ksvg2/svg/SVGPatternElement.cpp: * ksvg2/svg/SVGRadialGradientElement.cpp: * ksvg2/svg/SVGSVGElement.cpp: * ksvg2/svg/SVGStyledElement.h: * ksvg2/svg/SVGStyledTransformableElement.cpp: * ksvg2/svg/SVGStyledTransformableElement.h: * ksvg2/svg/SVGSwitchElement.cpp: * ksvg2/svg/SVGTextElement.cpp: * ksvg2/svg/SVGTransformable.h: * ksvg2/svg/SVGUseElement.cpp: * kwq/AffineTransform.cpp: Added. * kwq/AffineTransform.h: Added. * kwq/DeprecatedCString.cpp: Added. * kwq/DeprecatedCString.h: Added. * kwq/DeprecatedPtrQueue.h: Added. * kwq/FileButton.h: Added. * kwq/FileButton.mm: Added. * kwq/FormDataMac.mm: Added. * kwq/KWQCString.cpp: Removed. * kwq/KWQCString.h: Removed. * kwq/KWQComboBox.h: Removed. * kwq/KWQComboBox.mm: Removed. * kwq/KWQEditCommand.h: Removed. * kwq/KWQEditCommand.mm: Removed. * kwq/KWQFileButton.h: Removed. * kwq/KWQFileButton.mm: Removed. * kwq/KWQFormData.h: Removed. * kwq/KWQFormData.mm: Removed. * kwq/KWQKHTMLSettings.h: Removed. * kwq/KWQKIOGlobal.h: Removed. * kwq/KWQKSSLKeyGen.h: Removed. * kwq/KWQKSSLKeyGen.mm: Removed. * kwq/KWQLineEdit.h: Removed. * kwq/KWQLineEdit.mm: Removed. * kwq/KWQListBox.h: Removed. * kwq/KWQListBox.mm: Removed. * kwq/KWQLoader.h: Removed. * kwq/KWQLoader.mm: Removed. * kwq/KWQPageState.h: Removed. * kwq/KWQPageState.mm: Removed. * kwq/KWQPtrQueue.h: Removed. * kwq/KWQResourceLoader.h: Removed. * kwq/KWQResourceLoader.mm: Removed. * kwq/KWQScrollBar.h: Removed. * kwq/KWQScrollBar.mm: Removed. * kwq/KWQSlider.h: Removed. * kwq/KWQSlider.mm: Removed. * kwq/KWQTextEdit.h: Removed. * kwq/KWQTextEdit.mm: Removed. * kwq/KWQTextStream.cpp: Removed. * kwq/KWQTextStream.h: Removed. * kwq/KWQWMatrix.cpp: Removed. * kwq/KWQWMatrix.h: Removed. * kwq/ListBox.h: Added. * kwq/ListBox.mm: Added. * kwq/LoaderFunctions.h: Added. * kwq/LoaderFunctions.mm: Added. * kwq/PopUpButton.h: Added. * kwq/PopUpButton.mm: Added. * kwq/SSLKeyGenerator.h: Added. * kwq/SSLKeyGenerator.mm: Added. * kwq/Settings.h: Added. * kwq/TextBox.h: Added. * kwq/TextBox.mm: Added. * kwq/TextField.h: Added. * kwq/TextField.mm: Added. * kwq/TextStream.cpp: Added. * kwq/TextStream.h: Added. * kwq/WebCoreEditCommand.h: Added. * kwq/WebCoreEditCommand.mm: Added. * kwq/WebCorePageState.h: Added. * kwq/WebCorePageState.mm: Added. * kwq/WebCoreResourceLoaderImp.h: Added. * kwq/WebCoreResourceLoaderImp.mm: Added. * kwq/WebCoreScrollBar.h: Added. * kwq/WebCoreScrollBar.mm: Added. * kwq/WebCoreSlider.h: Added. * kwq/WebCoreSlider.mm: Added. * loader/Cache.h: * loader/CachedCSSStyleSheet.cpp: * loader/CachedImage.cpp: * loader/CachedObject.h: * loader/CachedObjectClientWalker.h: * loader/CachedResource.h: * loader/CachedResourceClientWalker.h: * loader/CachedScript.h: * loader/CachedXBLDocument.h: * loader/Decoder.h: * loader/DocLoader.cpp: * loader/DocLoader.h: * loader/FormData.h: * loader/ImageDocument.cpp: * loader/PluginDocument.cpp: * loader/TextDocument.cpp: * loader/loader.cpp: * loader/loader.h: * page/Frame.cpp: * page/Frame.h: * page/FramePrivate.h: * page/Page.cpp: * page/Page.h: * platform/DeprecatedPtrList.h: * platform/DeprecatedPtrListImpl.cpp: * platform/DeprecatedPtrListImpl.h: * platform/DeprecatedString.cpp: * platform/DeprecatedString.h: * platform/DeprecatedStringList.cpp: * platform/DeprecatedStringList.h: * platform/DeprecatedValueList.h: * platform/DeprecatedValueListImpl.cpp: * platform/DeprecatedValueListImpl.h: * platform/FloatSize.h: * platform/Font.cpp: * platform/KURL.cpp: * platform/RegularExpression.cpp: * platform/RegularExpression.h: * platform/SegmentedString.h: * platform/StreamingTextDecoder.cpp: * platform/String.cpp: * platform/StringImpl.cpp: * platform/TextEncoding.cpp: * platform/TransferJob.cpp: * platform/TransferJob.h: * platform/TransferJobInternal.h: * platform/gdk/FrameGdk.cpp: * platform/gdk/TemporaryLinkStubs.cpp: * platform/mac/ClipboardMac.h: * platform/mac/ClipboardMac.mm: * platform/mac/CursorMac.mm: * platform/mac/DeprecatedStringMac.mm: Added. * platform/mac/FontCacheMac.mm: * platform/mac/FontMac.mm: * platform/mac/FoundationExtras.h: * platform/mac/ImageMac.mm: * platform/mac/KURLMac.mm: * platform/mac/MouseEventMac.mm: Removed. * platform/mac/QStringListMac.mm: Removed. * platform/mac/QStringMac.mm: Removed. * platform/mac/TransferJobMac.mm: * platform/mac/WebCoreTextArea.h: * platform/mac/WebCoreTextArea.mm: * platform/mac/WebCoreTextField.h: * platform/mac/WebCoreTextField.mm: * platform/mac/WidgetMac.mm: * platform/win/TemporaryLinkStubs.cpp: * rendering/DataRef.h: * rendering/DeprecatedRenderSelect.cpp: * rendering/DeprecatedRenderSelect.h: * rendering/DeprecatedSlider.cpp: * rendering/InlineFlowBox.cpp: * rendering/RenderApplet.cpp: * rendering/RenderBlock.cpp: * rendering/RenderBlock.h: * rendering/RenderContainer.cpp: * rendering/RenderFileButton.cpp: * rendering/RenderFlexibleBox.cpp: * rendering/RenderFlow.cpp: * rendering/RenderFormElement.cpp: * rendering/RenderFrameSet.cpp: * rendering/RenderFrameSet.h: * rendering/RenderImage.cpp: * rendering/RenderInline.cpp: * rendering/RenderLayer.cpp: * rendering/RenderLayer.h: * rendering/RenderLineEdit.cpp: * rendering/RenderListItem.cpp: * rendering/RenderListMarker.cpp: * rendering/RenderObject.cpp: * rendering/RenderObject.h: * rendering/RenderPartObject.cpp: * rendering/RenderReplaced.cpp: * rendering/RenderStyle.cpp: Added. * rendering/RenderStyle.h: Added. * rendering/RenderTable.cpp: * rendering/RenderTable.h: * rendering/RenderTableCell.cpp: * rendering/RenderTableCell.h: * rendering/RenderTableCol.cpp: * rendering/RenderTableCol.h: * rendering/RenderTableRow.cpp: * rendering/RenderTableSection.cpp: * rendering/RenderTableSection.h: * rendering/RenderText.cpp: * rendering/RenderText.h: * rendering/RenderTextArea.cpp: * rendering/RenderTextControl.cpp: Added. * rendering/RenderTextControl.h: Added. * rendering/RenderTextField.cpp: Removed. * rendering/RenderTextField.h: Removed. * rendering/RenderTheme.cpp: * rendering/RenderThemeMac.mm: * rendering/RenderTreeAsText.cpp: * rendering/RenderTreeAsText.h: * rendering/RenderView.cpp: * rendering/RenderWidget.cpp: * rendering/bidi.cpp: * rendering/render_style.cpp: Removed. * rendering/render_style.h: Removed. * xml/XSLStyleSheet.cpp: * xml/XSLTProcessor.cpp: * xml/xmlhttprequest.cpp: * xpath/impl/XPathParser.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 29 Jun, 2006 1 commit
-
-
bdakin authored
Fix for <rdar://problem/4450615> Add composite mode to background styles -webkit-background-composite will set a composite mode on a background image. * css/CSSComputedStyleDeclaration.cpp: (WebCore::): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSPropertyNames.in: Add -webkit-background-composite * css/CSSValueKeywords.in: Add all possible values (clear, copy, source-over, source-in, source-out, source-atop, destination-over, destination-in, destination-out, destination-atop, xor, plus- darker, highlight, and plus-lighter) * css/cssparser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseBackgroundProperty): * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty): (WebCore::CSSStyleSelector::mapBackgroundComposite): * css/cssstyleselector.h: * platform/GraphicsContext.cpp: (WebCore::GraphicsContext::drawTiledImage): * platform/GraphicsContext.h: drawTiledImage() now takes a composite operator. * platform/Image.h: drawTiled() now takes a composite operator. * platform/cairo/ImageCairo.cpp: (WebCore::Image::drawTiled): Set the composite operator. * platform/mac/ImageMac.mm: (WebCore::Image::drawTiled): Set the composite operator. * platform/win/TemporaryLinkStubs.cpp: (Image::drawTiled): * rendering/RenderBox.cpp: (WebCore::RenderBox::paintBackgroundExtended): Send the composite operator in the render style over to the graphics context. * rendering/render_style.cpp: (WebCore::BackgroundLayer::BackgroundLayer): (WebCore::BackgroundLayer::operator=): (WebCore::BackgroundLayer::operator==): (WebCore::BackgroundLayer::fillUnsetProperties): (WebCore::BackgroundLayer::cullEmptyLayers): * rendering/render_style.h: (WebCore::BackgroundLayer::backgroundComposite): (WebCore::BackgroundLayer::isBackgroundCompositeSet): (WebCore::BackgroundLayer::setBackgroundComposite): (WebCore::BackgroundLayer::clearBackgroundComposite): (WebCore::RenderStyle::backgroundComposite): (WebCore::RenderStyle::initialBackgroundComposite): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15095 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 26 Jun, 2006 1 commit
-
-
hyatt authored
ends still (script/style/comments/doctype/entities/accurate whitespace). Reviewed by darin * DerivedSources.make: * WebCore.xcodeproj/project.pbxproj: * bridge/mac/WebCoreFrameBridge.h: * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge setInViewSourceMode:]): (-[WebCoreFrameBridge inViewSourceMode]): * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::loadDefaultStyle): (WebCore::CSSStyleSelector::matchUARules): * css/cssstyleselector.h: * css/view-source.css: Added. * dom/Document.cpp: (WebCore::Document::implicitClose): * dom/xml_tokenizer.h: (WebCore::Tokenizer::Tokenizer): (WebCore::Tokenizer::~Tokenizer): (WebCore::Tokenizer::inViewSourceMode): (WebCore::Tokenizer::setInViewSourceMode): * html/HTMLAttributeNames.in: * html/HTMLFrameElement.cpp: (WebCore::HTMLFrameElement::init): (WebCore::HTMLFrameElement::parseMappedAttribute): (WebCore::HTMLFrameElement::attach): * html/HTMLFrameElement.h: (WebCore::HTMLFrameElement::viewSourceMode): * html/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::HTMLTokenizer): (WebCore::HTMLTokenizer::scriptHandler): (WebCore::HTMLTokenizer::scriptExecution): (WebCore::HTMLTokenizer::parseTag): (WebCore::HTMLTokenizer::continueProcessing): (WebCore::HTMLTokenizer::write): (WebCore::HTMLTokenizer::timerFired): (WebCore::HTMLTokenizer::end): (WebCore::HTMLTokenizer::processToken): (WebCore::HTMLTokenizer::notifyFinished): * html/HTMLTokenizer.h: * html/HTMLViewSourceDocument.cpp: Added. (WebCore::HTMLViewSourceDocument::HTMLViewSourceDocument): (WebCore::HTMLViewSourceDocument::createTokenizer): (WebCore::HTMLViewSourceDocument::addViewSourceToken): (WebCore::HTMLViewSourceDocument::addViewSourceAttribute): (WebCore::HTMLViewSourceDocument::addSpanWithClassName): * html/HTMLViewSourceDocument.h: Added. * page/Frame.cpp: (WebCore::Frame::begin): (WebCore::Frame::inViewSourceMode): (WebCore::Frame::setInViewSourceMode): * page/Frame.h: * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): * rendering/RenderPartObject.cpp: (WebCore::RenderPartObject::updateWidget): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 11 Jun, 2006 1 commit
-
-
darin authored
- Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8039 Remove use of DeprecatedArray in favor of new Vector class This removes most of the uses of DeprecatedArray and DeprecatedByteArray, with the exception of DeprecatedCString. No test cases added because there is no change in functionality. * loader/CachedCSSStyleSheet.cpp: (WebCore::CachedCSSStyleSheet::data): * loader/CachedCSSStyleSheet.h: * loader/CachedImage.cpp: (WebCore::CachedImage::bufferData): (WebCore::CachedImage::data): (WebCore::CachedImage::checkNotify): (WebCore::CachedImage::shouldStopAnimation): * loader/CachedImage.h: * loader/CachedObject.cpp: (WebCore::CachedObject::bufferData): (WebCore::CachedObject::setExpireDate): * loader/CachedObject.h: (WebCore::CachedObject::setCharset): * loader/CachedScript.cpp: (WebCore::CachedScript::data): * loader/CachedScript.h: * loader/CachedXBLDocument.cpp: (WebCore::CachedXBLDocument::data): (WebCore::CachedXBLDocument::checkNotify): * loader/CachedXBLDocument.h: * loader/CachedXSLStyleSheet.cpp: (WebCore::CachedXSLStyleSheet::data): * loader/CachedXSLStyleSheet.h: * loader/Request.cpp: (WebCore::Request::Request): (WebCore::Request::~Request): * loader/Request.h: (WebCore::Request::buffer): (WebCore::Request::cachedObject): (WebCore::Request::docLoader): (WebCore::Request::isIncremental): (WebCore::Request::setIsIncremental): (WebCore::Request::isMultipart): (WebCore::Request::setIsMultipart): * loader/loader.cpp: (WebCore::crossDomain): (WebCore::Loader::Loader): (WebCore::Loader::load): (WebCore::Loader::servePendingRequests): (WebCore::Loader::receivedAllData): (WebCore::Loader::receivedResponse): (WebCore::Loader::receivedData): (WebCore::Loader::numRequests): (WebCore::Loader::cancelRequests): (WebCore::Loader::removeBackgroundDecodingRequest): (WebCore::Loader::jobForRequest): * platform/Image.cpp: (WebCore::Image::setData): * platform/Image.h: (WebCore::Image::dataBuffer): * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::init): (WebCore::CSSStyleSelector::matchRules): (WebCore::CSSStyleSelector::matchRulesForList): (WebCore::CSSStyleSelector::sortMatchedRules): (WebCore::CSSStyleSelector::initForStyleResolve): (WebCore::CSSStyleSelector::createStyleForElement): (WebCore::CSSStyleSelector::createPseudoStyleForElement): * css/cssstyleselector.h: (WebCore::CSSStyleSelector::addMatchedRule): (WebCore::CSSStyleSelector::addMatchedDeclaration): * dom/xml_tokenizer.cpp: (WebCore::OffsetBuffer::OffsetBuffer): (WebCore::openFunc): * html/HTMLOptionElement.cpp: (WebCore::HTMLOptionElement::index): * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::selectedIndex): (WebCore::HTMLSelectElement::setSelectedIndex): (WebCore::HTMLSelectElement::length): (WebCore::HTMLSelectElement::remove): (WebCore::HTMLSelectElement::value): (WebCore::HTMLSelectElement::setValue): (WebCore::HTMLSelectElement::state): (WebCore::HTMLSelectElement::restoreState): (WebCore::HTMLSelectElement::appendFormData): (WebCore::HTMLSelectElement::optionToListIndex): (WebCore::HTMLSelectElement::listToOptionIndex): (WebCore::HTMLSelectElement::recalcListItems): (WebCore::HTMLSelectElement::reset): (WebCore::HTMLSelectElement::notifyOptionSelected): * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::listItems): * kwq/KWQLoader.h: * kwq/KWQLoader.mm: (KWQServeSynchronousRequest): * kwq/KWQTextStream.cpp: (QTextStream::operator<<): * kwq/KWQTextStream.h: * loader/FormData.cpp: (WebCore::FormData::flatten): (WebCore::FormData::flattenToString): * loader/FormData.h: (WebCore::FormDataElement::FormDataElement): * platform/DeprecatedString.cpp: * platform/DeprecatedString.h: * platform/IntPointArray.cpp: Removed. * platform/IntPointArray.h: Removed. * platform/TextEncoding.cpp: (WebCore::TextEncoding::toUnicode): * platform/TextEncoding.h: * platform/cairo/pixman/src/pixregion.c: * platform/cg/PathCG.cpp: (WebCore::Path::Path): * rendering/RenderObject.cpp: (WebCore::RenderObject::drawBorder): * rendering/RenderTable.h: (WebCore::RenderTable::colToEffCol): (WebCore::RenderTable::effColToCol): * rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::ensureRows): (WebCore::RenderTableSection::addCell): (WebCore::RenderTableSection::setCellWidths): * rendering/RenderTableSection.h: * rendering/bidi.cpp: (WebCore::addMidpoint): (WebCore::RenderBlock::layoutInlineChildren): * rendering/render_form.cpp: (WebCore::RenderSelect::updateFromElement): (WebCore::RenderSelect::layout): (WebCore::RenderSelect::valueChanged): (WebCore::RenderSelect::selectionChanged): (WebCore::RenderSelect::updateSelection): * rendering/table_layout.cpp: (WebCore::FixedTableLayout::layout): * rendering/table_layout.h: * xml/XSLTProcessor.cpp: (WebCore::docLoaderFunc): * xml/xmlhttprequest.cpp: (WebCore::XMLHttpRequest::send): (WebCore::XMLHttpRequest::processSyncLoadResults): * xml/xmlhttprequest.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14816 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 09 Jun, 2006 1 commit
-
-
bdakin authored
Landed by Beth. CSS3 Media Queries implementation. <http://bugzilla.opendarwin.org/show_bug.cgi?id=4127> * WebCore.xcodeproj/project.pbxproj: * bindings/js/kjs_css.cpp: (KJS::DOMMediaList::put): (KJS::KJS::DOMMediaListProtoFunc::callAsFunction): * bindings/objc/DOMCSS.mm: (-[DOMMediaList setMediaText:]): (-[DOMMediaList deleteMedium:]): (-[DOMMediaList appendMedium:]): * css/CSSGrammar.y: * css/MediaFeatureNames.cpp: Added. (WebCore::MediaFeatureNames::init): * css/MediaFeatureNames.h: Added. * css/MediaList.cpp: (WebCore::MediaList::MediaList): (WebCore::MediaList::~MediaList): (WebCore::parseMediaDescriptor): (WebCore::MediaList::deleteMedium): (WebCore::MediaList::mediaText): (WebCore::MediaList::setMediaText): (WebCore::MediaList::item): (WebCore::MediaList::appendMedium): (WebCore::MediaList::appendMediaQuery): * css/MediaList.h: (WebCore::MediaList::MediaList): (WebCore::MediaList::length): (WebCore::MediaList::mediaQueries): * css/MediaQuery.cpp: Added. (WebCore::MediaQuery::MediaQuery): (WebCore::MediaQuery::~MediaQuery): (WebCore::MediaQuery::operator==): (WebCore::MediaQuery::cssText): * css/MediaQuery.h: Added. (WebCore::MediaQuery::): (WebCore::MediaQuery::restrictor): (WebCore::MediaQuery::expressions): (WebCore::MediaQuery::mediaType): (WebCore::MediaQuery::append): * css/MediaQueryEvaluator.cpp: Added. (WebCore::): (WebCore::MediaQueryEvaluator): (WebCore::MediaQueryEvaluator::~MediaQueryEvaluator): (WebCore::MediaQueryEvaluator::mediaTypeMatch): (WebCore::applyRestrictor): (WebCore::MediaQueryEvaluator::eval): (WebCore::parseAspectRatio): (WebCore::cmpvalue): (WebCore::numberValue): (WebCore::colorMediaFeatureEval): (WebCore::monochromeMediaFeatureEval): (WebCore::device_aspect_ratioMediaFeatureEval): (WebCore::gridMediaFeatureEval): (WebCore::device_heightMediaFeatureEval): (WebCore::device_widthMediaFeatureEval): (WebCore::heightMediaFeatureEval): (WebCore::widthMediaFeatureEval): (WebCore::min_colorMediaFeatureEval): (WebCore::max_colorMediaFeatureEval): (WebCore::min_monochromeMediaFeatureEval): (WebCore::max_monochromeMediaFeatureEval): (WebCore::min_device_aspect_ratioMediaFeatureEval): (WebCore::max_device_aspect_ratioMediaFeatureEval): (WebCore::min_heightMediaFeatureEval): (WebCore::max_heightMediaFeatureEval): (WebCore::min_widthMediaFeatureEval): (WebCore::max_widthMediaFeatureEval): (WebCore::min_device_heightMediaFeatureEval): (WebCore::max_device_heightMediaFeatureEval): (WebCore::min_device_widthMediaFeatureEval): (WebCore::max_device_widthMediaFeatureEval): (WebCore::createFunctionMap): * css/MediaQueryEvaluator.h: Added. * css/MediaQueryExp.cpp: Added. (WebCore::MediaQueryExp::MediaQueryExp): (WebCore::MediaQueryExp::~MediaQueryExp): * css/MediaQueryExp.h: Added. (WebCore::MediaQueryExp::mediaFeature): (WebCore::MediaQueryExp::value): (WebCore::MediaQueryExp::operator==): * css/StyleSheet.cpp: (WebCore::StyleSheet::setMedia): * css/cssparser.cpp: (WebCore::CSSParser::CSSParser): (WebCore::CSSParser::~CSSParser): (WebCore::CSSParser::setupParser): (WebCore::CSSParser::parseMediaQuery): (WebCore::CSSParser::createFloatingMediaQueryExp): (WebCore::CSSParser::sinkFloatingMediaQueryExp): (WebCore::CSSParser::createFloatingMediaQueryExpList): (WebCore::CSSParser::sinkFloatingMediaQueryExpList): (WebCore::CSSParser::createFloatingMediaQuery): (WebCore::CSSParser::sinkFloatingMediaQuery): * css/cssparser.h: * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::CSSStyleSelector): (WebCore::CSSStyleSelector::init): (WebCore::CSSStyleSelector::~CSSStyleSelector): (WebCore::CSSStyleSelector::loadDefaultStyle): (WebCore::CSSStyleSelector::matchUARules): (WebCore::CSSStyleSelector::styleForElement): (WebCore::CSSStyleSelector::pseudoStyleForElement): (WebCore::CSSStyleSelector::updateFont): (WebCore::CSSStyleSelector::cacheBorderAndBackground): (WebCore::CSSStyleSelector::styleRulesForElement): (WebCore::CSSRuleSet::addRulesFromSheet): * css/cssstyleselector.h: * css/maketokenizer: * css/tokenizer.flex: * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createCSSStyleSheet): * html/HTMLLinkElement.cpp: (WebCore::HTMLLinkElement::process): (WebCore::HTMLLinkElement::setStyleSheet): * html/HTMLStyleElement.cpp: (WebCore::HTMLStyleElement::childrenChanged): * ksvg2/svg/SVGDOMImplementation.cpp: (SVGDOMImplementation::createCSSStyleSheet): * ksvg2/svg/SVGStyleElement.cpp: (WebCore::SVGStyleElement::childrenChanged): * page/Frame.cpp: (WebCore::Frame::Frame): * platform/Screen.h: * platform/mac/ScreenMac.mm: (WebCore::screenDepthPerComponent): (WebCore::screenIsMonochrome): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 17 May, 2006 1 commit
-
-
darin authored
Reviewed by Maciej. Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7492 CSS attribute selectors fail when the setAttribute() method is used to create an attribute and the attribute name is not Class or ID. * fast/css/selector-set-attribute.html: Added. * fast/css/selector-set-attribute-expected.txt: Added. * fast/css/selector-set-attribute-expected.checksum: Added. * fast/css/selector-set-attribute-expected.png: Added. WebCore: Reviewed by Maciej. Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7492 CSS attribute selectors fail when the setAttribute() method is used to create an attribute and the attribute name is not Class or ID. Keep track of attributes used in attribute selectors to check after setAttribute whether a style recalc is needed. Test: fast/css/selector-set-attribute.html * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkOneSelector): (WebCore::CSSStyleSelector::hasSelectorForAttribute): * css/cssstyleselector.h: * dom/StyledElement.cpp: (WebCore::StyledElement::attributeChanged): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 16 May, 2006 2 commits
-
-
andersca authored
Reviewed by Darin. * DerivedSources.make: Conditionally generate the SVG and XPath related files based on the value of FEATURE_DEFINES. Also, pass FEATURE_DEFINES TO THE BINDINGS GENERATOR. * WebCore.xcodeproj/project.pbxproj: Add FEATURE_DEFINES as a toplevel build setting and set it to "SVG_SUPPORT XPATH_SUPPORT" to keep SVG and XPath support turned on. Add FEATURE_DEFINES to the CPP defines. * bindings/js/kjs_binding.cpp: (KJS::setDOMException): Add #ifdefs around the XPath code. * bindings/scripts/CodeGeneratorJS.pm: Add "Conditional" extended attribute for interfaces. If this is set, the generated code will be surrounded by an #if. * bindings/scripts/IDLParser.pm: Pass the define flags on to the preprocessor. * bindings/scripts/generate-bindings.pl: Add a --defines property and pass it on to the parser. * css/cssstyleselector.h: Add DeprecatedString.h include. * dom/Document.idl: Put back #if around the XPath functions * page/DOMWindow.idl: Put #if around the XPath constructors * xpath/XPathEvaluator.idl: * xpath/XPathExpression.idl: * xpath/XPathNSResolver.cpp: * xpath/XPathNSResolver.idl: * xpath/XPathNamespace.cpp: * xpath/XPathResult.idl: Add "Conditional=XPATH" to all interfaces. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14423 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eseidel authored
Reviewed by hyatt. Split css_base.* into separate files (one per class). http://bugzilla.opendarwin.org/show_bug.cgi?id=8935 * WebCore.xcodeproj/project.pbxproj: * bindings/js/kjs_css.cpp: * css/CSSBorderImageValue.cpp: * css/CSSBorderImageValue.h: * css/CSSCharsetRule.h: * css/CSSFontFaceRule.h: * css/CSSGrammar.y: * css/CSSImportRule.h: * css/CSSInheritedValue.cpp: * css/CSSInitialValue.cpp: * css/CSSMediaRule.h: * css/CSSMutableStyleDeclaration.h: * css/CSSNamespace.h: Added. (WebCore::CSSNamespace::CSSNamespace): (WebCore::CSSNamespace::namespaceForPrefix): * css/CSSPageRule.h: * css/CSSPrimitiveValue.h: * css/CSSProperty.cpp: * css/CSSProperty.h: * css/CSSRule.h: * css/CSSRuleList.cpp: * css/CSSSelector.cpp: Added. * css/CSSSelector.h: Added. (WebCore::CSSSelector::CSSSelector): * css/CSSStyleDeclaration.h: * css/CSSStyleRule.cpp: * css/CSSStyleRule.h: * css/CSSStyleSheet.cpp: (WebCore::CSSStyleSheet::~CSSStyleSheet): * css/CSSStyleSheet.h: * css/CSSValue.h: * css/CSSValueList.cpp: * css/CSSValueList.h: * css/FontFamilyValue.cpp: * css/FontValue.cpp: * css/FontValue.h: * css/MediaList.h: * css/ShadowValue.cpp: * css/ShadowValue.h: * css/StyleBase.cpp: Added. (WebCore::StyleBase::stylesheet): * css/StyleBase.h: Added. (WebCore::StyleBase::StyleBase): * css/StyleList.cpp: Added. * css/StyleList.h: Added. * css/StyleSheet.h: * css/css_base.cpp: Removed. * css/css_base.h: Removed. * css/cssparser.cpp: * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::matchRulesForList): * css/cssstyleselector.h: * dom/CSSMappedAttributeDeclaration.h: * ksvg2/svg/SVGColor.cpp: (WebCore::SVGColor::SVGColor): (WebCore::SVGColor::setRGBColor): (WebCore::SVGColor::setRGBColorICCColor): (WebCore::SVGColor::setColor): (WebCore::SVGColor::cssText): (WebCore::SVGColor::color): * ksvg2/svg/SVGColor.h: * ksvg2/svg/SVGStyledElement.cpp: (WebCore::SVGStyledElement::SVGStyledElement): (WebCore::SVGStyledElement::className): (WebCore::SVGStyledElement::createRenderer): (WebCore::SVGStyledElement::parseMappedAttribute): (WebCore::SVGStyledElement::notifyAttributeChange): (WebCore::SVGStyledElement::attributeChanged): (WebCore::SVGStyledElement::canvas): (WebCore::SVGStyledElement::updateCanvasItem): (WebCore::SVGStyledElement::pushAttributeContext): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14408 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 15 May, 2006 1 commit
-
-
eseidel authored
Reviewed by hyatt. Split css_valueimpl.* and css_ruleimpl.* into separate files (one per class). http://bugzilla.opendarwin.org/show_bug.cgi?id=8934 * WebCore+SVG/RGBColor.cpp: (WebCore::RGBColor::RGBColor): * WebCore.vcproj/WebCore/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/kjs_css.cpp: (KJS::DOMCSSRule::classInfo): * bindings/js/kjs_css.h: * bindings/js/kjs_dom.cpp: * bindings/js/kjs_html.cpp: * bindings/js/kjs_window.cpp: * bindings/objc/DOMCSS.mm: * bindings/scripts/CodeGeneratorJS.pm: * css/CSSBorderImageValue.cpp: Added. (WebCore::CSSBorderImageValue::CSSBorderImageValue): * css/CSSBorderImageValue.h: Added. * css/CSSCharsetRule.h: Added. (WebCore::CSSCharsetRule::CSSCharsetRule): * css/CSSComputedStyleDeclaration.cpp: (WebCore::valueForShadow): (WebCore::): * css/CSSComputedStyleDeclaration.h: * css/CSSFontFaceRule.cpp: Added. (WebCore::CSSFontFaceRule::CSSFontFaceRule): * css/CSSFontFaceRule.h: Added. (WebCore::CSSFontFaceRule::isFontFaceRule): * css/CSSGrammar.y: * css/CSSImageValue.cpp: Added. (WebCore::CSSImageValue::CSSImageValue): * css/CSSImageValue.h: Added. * css/CSSImportRule.cpp: Added. * css/CSSImportRule.h: Added. * css/CSSInheritedValue.cpp: Added. * css/CSSInheritedValue.h: Added. * css/CSSInitialValue.cpp: Added. * css/CSSInitialValue.h: Added. * css/CSSMediaRule.cpp: Added. (WebCore::CSSMediaRule::CSSMediaRule): (WebCore::CSSMediaRule::~CSSMediaRule): (WebCore::CSSMediaRule::append): (WebCore::CSSMediaRule::deleteRule): (WebCore::CSSMediaRule::cssText): * css/CSSMediaRule.h: Added. (WebCore::CSSMediaRule::media): (WebCore::CSSMediaRule::cssRules): * css/CSSMutableStyleDeclaration.cpp: Added. (WebCore::CSSMutableStyleDeclaration::CSSMutableStyleDeclaration): (WebCore::CSSMutableStyleDeclaration::setChanged): * css/CSSMutableStyleDeclaration.h: Added. * css/CSSPageRule.cpp: Added. (WebCore::CSSPageRule::CSSPageRule): * css/CSSPageRule.h: Added. (WebCore::CSSPageRule::isPageRule): * css/CSSPrimitiveValue.cpp: Added. * css/CSSPrimitiveValue.h: Added. * css/CSSProperty.cpp: Added. (WebCore::CSSProperty::cssText): * css/CSSProperty.h: Added. (WebCore::CSSProperty::CSSProperty): * css/CSSQuirkPrimitiveValue.h: Added. * css/CSSRule.cpp: Added. * css/CSSRule.h: Added. (WebCore::CSSRule::CSSRule): * css/CSSRuleList.cpp: Added. (WebCore::CSSRuleList::CSSRuleList): (WebCore::CSSRuleList::~CSSRuleList): (WebCore::CSSRuleList::deleteRule): (WebCore::CSSRuleList::append): (WebCore::CSSRuleList::insertRule): * css/CSSRuleList.h: Added. (WebCore::CSSRuleList::item): * css/CSSStyleDeclaration.cpp: Added. (WebCore::CSSStyleDeclaration::CSSStyleDeclaration): (WebCore::CSSStyleDeclaration::diff): * css/CSSStyleDeclaration.h: Added. * css/CSSStyleRule.cpp: Added. (WebCore::CSSStyleRule::CSSStyleRule): (WebCore::CSSStyleRule::selectorText): * css/CSSStyleRule.h: Added. * css/CSSStyleSheet.cpp: (WebCore::CSSStyleSheet::ownerRule): * css/CSSUnknownRule.h: Added. (WebCore::CSSUnknownRule::CSSUnknownRule): * css/CSSValue.h: Added. * css/CSSValueList.cpp: Added. * css/CSSValueList.h: Added. * css/Counter.h: Added. * css/DashboardRegion.h: Added. * css/FontFamilyValue.cpp: Added. * css/FontFamilyValue.h: Added. (WebCore::FontFamilyValue::genericFamilyType): * css/FontValue.cpp: Added. (WebCore::FontValue::cssText): * css/FontValue.h: Added. * css/MediaList.cpp: * css/Pair.h: Added. (WebCore::Pair::~Pair): * css/RectImpl.h: Added. (WebCore::RectImpl::~RectImpl): * css/ShadowValue.cpp: Added. (WebCore::ShadowValue::ShadowValue): * css/ShadowValue.h: Added. * css/css_base.cpp: * css/css_ruleimpl.cpp: Removed. * css/css_ruleimpl.h: Removed. * css/css_valueimpl.cpp: Removed. * css/css_valueimpl.h: Removed. * css/cssparser.cpp: (WebCore::CSSParser::parseColor): (WebCore::CSSParser::parseFontFamily): * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::locateCousinList): (WebCore::CSSStyleSelector::checkSelector): (WebCore::CSSRuleSet::addRulesFromSheet): (WebCore::CSSStyleSelector::applyProperty): (WebCore::CSSStyleSelector::mapBackgroundImage): * css/cssstyleselector.h: * dom/CSSMappedAttributeDeclaration.h: (WebCore::CSSMappedAttributeDeclaration::CSSMappedAttributeDeclaration): * dom/Document.cpp: * editing/ApplyStyleCommand.cpp: * editing/CompositeEditCommand.h: * editing/EditCommand.cpp: * editing/InsertLineBreakCommand.cpp: (WebCore::InsertLineBreakCommand::doApply): * editing/InsertLineBreakCommand.h: * editing/InsertTextCommand.cpp: (WebCore::InsertTextCommand::input): * editing/RemoveCSSPropertyCommand.cpp: (WebCore::RemoveCSSPropertyCommand::RemoveCSSPropertyCommand): (WebCore::RemoveCSSPropertyCommand::~RemoveCSSPropertyCommand): * editing/RemoveCSSPropertyCommand.h: (WebCore::RemoveCSSPropertyCommand::styleDeclaration): * html/HTMLBodyElement.cpp: * html/HTMLElement.cpp: * html/HTMLScriptElement.h: * html/HTMLTokenizer.h: * kcanvas/KCanvasFilters.h: (WebCore::KCanvasFEColorMatrix::values): (WebCore::KCanvasFEColorMatrix::setValues): (WebCore::KCanvasFEConvolveMatrix::kernel): (WebCore::KCanvasFEConvolveMatrix::setKernel): * kcanvas/KCanvasPath.h: * kcanvas/KCanvasTreeDebug.h: (WebCore::operator<<): * kcanvas/RenderPath.h: * ksvg2/css/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): (WebCore::CSSParser::parseSVGStrokeDasharray): (WebCore::CSSParser::parseSVGPaint): (WebCore::CSSParser::parseSVGColor): * ksvg2/css/SVGCSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applySVGProperty): * ksvg2/css/SVGRenderStyleDefs.h: * ksvg2/ecma/Ecma.cpp: * ksvg2/misc/KCanvasRenderingStyle.cpp: * ksvg2/misc/KCanvasRenderingStyle.h: * ksvg2/svg/SVGAnimationElement.cpp: * ksvg2/svg/SVGColor.cpp: * ksvg2/svg/SVGColor.h: * ksvg2/svg/SVGCursorElement.h: * ksvg2/svg/SVGFEColorMatrixElement.cpp: (SVGFEColorMatrixElement::filterEffect): * page/DOMWindow.cpp: * page/Frame.cpp: * page/FramePrivate.h: * platform/DeprecatedValueList.h: * rendering/RenderTextField.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14407 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 09 May, 2006 1 commit
-
-
hyatt authored
their old names, since the term "create" is not accurate. * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::styleForElement): (WebCore::CSSStyleSelector::pseudoStyleForElement): * css/cssstyleselector.h: * dom/Element.cpp: (WebCore::Element::styleForRenderer): (WebCore::Element::recalcStyle): * dom/Element.h: * dom/Node.cpp: (WebCore::Node::createRendererIfNeeded): (WebCore::Node::styleForRenderer): * dom/Node.h: * ksvg2/svg/SVGClipPathElement.cpp: (SVGClipPathElement::canvasResource): * ksvg2/svg/SVGFEFloodElement.cpp: (SVGFEFloodElement::filterEffect): * ksvg2/svg/SVGGradientElement.cpp: (SVGGradientElement::rebuildStops): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 18 Apr, 2006 1 commit
-
-
bdakin authored
Implementation of CSS3 background-size property. See http://bugzilla.opendarwin.org/show_bug.cgi?id=8353 for details. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13959 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-