- 22 Feb, 2008 23 commits
-
-
oliver@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30509 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
oliver@apple.com authored
Unbreak windows vcproj * WebCore.vcproj/WebCore.vcproj: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30508 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
* Api/qwebhistoryinterface.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30507 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
oliver@apple.com authored
Support Canvas.getImageData and Canvas.createImageData Reviewed by Sam W. This patch adds support for all the pixel reading portions of the HTML5 Canvas spec. There are two new types ImageData and CanvasPixelArray which are used to provide the HTML5 ImageData object, and the required semantics for assignment to the ImageData data array. We only implement the CG version of ImageBuffer::getImageData, but the logic is null safe, so this will not introduce any crashes into other platforms, unfortunately it will result in JS Object detection "lying" on non-CG platforms. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
Rubber-stamped by Adam Roben. Rid the project of the Devil known as DeprecatedString! * GNUmakefile.am: * WebCore.base.exp: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * WebCoreSources.bkl: * dom/Node.h: * html/HTMLFormElement.cpp: * platform/DeprecatedString.cpp: Removed. * platform/DeprecatedString.h: Removed. * platform/graphics/qt/IconQt.cpp: * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp: * platform/gtk/CookieJarGtk.cpp: * platform/gtk/CursorGtk.cpp: * platform/gtk/KeyEventGtk.cpp: * platform/mac/DeprecatedStringMac.mm: Removed. * platform/network/qt/ResourceHandleQt.cpp: * platform/network/win/CookieJarWin.cpp: (WebCore::cookies): * platform/qt/ClipboardQt.cpp: * platform/qt/CookieJarQt.cpp: * platform/qt/CursorQt.cpp: * platform/symbian/DeprecatedStringSymbian.cpp: Removed. * platform/text/AtomicString.cpp: * platform/text/AtomicString.h: * platform/text/PlatformString.h: * platform/text/String.cpp: * platform/text/StringImpl.cpp: * platform/text/qt/StringQt.cpp: (WebCore::String::String): * platform/text/wx/StringWx.cpp: * platform/win/BString.cpp: * platform/win/BString.h: * platform/win/PasteboardWin.cpp: WebKit/qt: Rubber-stamped by Adam Roben. Rid the project of the Devil known as DeprecatedString! * Api/qwebhistory.cpp: * Api/qwebhistoryinterface.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30501 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
pewtermoose@webkit.org authored
Reviewed by Adam Roben. http://bugs.webkit.org/show_bug.cgi?id=17442 Correct the Windows Cairo implementation of GraphicsContext so that Windows 'WorldTransform' is kept in sync with the Cairo transformations. Also corrects an uninitialized variable in the Cairo Windows image drag handler. * platform/graphics/cairo/GraphicsContextCairo.cpp: Modify methods to call GraphicsContextPlatformPrivate calls, just as is done for the CoreGraphics version. These calls are nop's for everything but Windows. (WebCore::GraphicsContext::savePlatformState): (WebCore::GraphicsContext::restorePlatformState): (WebCore::GraphicsContext::clip): (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar): (WebCore::GraphicsContext::translate): (WebCore::GraphicsContext::concatCTM): Re-enable for Windows (WebCore::GraphicsContext::beginTransparencyLayer): (WebCore::GraphicsContext::endTransparencyLayer): (WebCore::GraphicsContext::rotate): (WebCore::GraphicsContext::scale): * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h: * platform/graphics/win/GraphicsContextCGWin.cpp: Move common code for handling WorldTransform calls to parent class. * platform/graphics/win/GraphicsContextCairoWin.cpp: Add common code for handling WorldTransform calls. (WebCore::GraphicsContextPlatformPrivate::concatCTM): Change implementation so that it only handles WorldTransform. The Cairo update is done in GraphicsContextCairo.cpp * platform/graphics/win/GraphicsContextWin.cpp: Call platform-private methods to keep WorldTransform in sync. (WebCore::GraphicsContextPlatformPrivate::save): (WebCore::GraphicsContextPlatformPrivate::restore): (WebCore::GraphicsContextPlatformPrivate::clip): (WebCore::GraphicsContextPlatformPrivate::scale): (WebCore::GraphicsContextPlatformPrivate::rotate): (WebCore::GraphicsContextPlatformPrivate::translate): * platform/win/DragImageCairoWin.cpp: (WebCore::createDragImageFromImage): Correct uninitialized value git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30500 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
- Remove use of DeprecatedString in CSSStyleSelector. * css/CSSStyleSelector.cpp: (WebCore::findHash): Removed. Use find instead. (WebCore::findSlashDotDotSlash): Changed to take a UChar* and a length. (WebCore::findSlashSlash): Ditto. (WebCore::findSlashDotSlash): Ditto. (WebCore::containsColonSlashSlash): Ditto. (WebCore::cleanPath): Change to operate on a String. (WebCore::checkPseudoState): Changed to use a Vector as a buffer. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ggaren@apple.com authored
Fixed <rdar://problem/5057509> Repro leak of JSXMLHttpRequest and associated objects @ www.viamichelin.it, which was probably an underlying cause of <rdar://problem/5744037> Gmail out of memory (17455) If SubresourceLoader::create returned NULL, we would ref() / gcProtect() the XMLHttpRequest but think we hadn't, therefore never calling deref() / gcUnprotect(). This could happen at gmail.com, since gmail.com attempts to send XMLHttpRequests from unload handlers in order to gather usage statistics. (According to comments in the code, SubresourceLoader::create returns NULL when called from an unload handler.) The solution is to ref() / gcProtect() only if SubresourceLoader::create doesn't return NULL. This make sense, since we only need to protect the request as long as it has an outstanding network transaction. * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::XMLHttpRequest): (WebCore::XMLHttpRequest::send): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ggaren@apple.com authored
Reviewed by Sam Weinig. Partial fix for <rdar://problem/5744037> Gmail out of memory (17455) I'm removing KJS_MEM_LIMIT for the following reasons: - We have a few reports of KJS_MEM_LIMIT breaking important web applications, like GMail and Google Reader. (For example, if you simply open 12 GMail tabs, tab #12 will hit the limit.) - Firefox has no discernable JS object count limit, so any limit, even a large one, is a potential compatibility problem. - KJS_MEM_LIMIT does not protect against malicious memory allocation, since there are many ways to maliciously allocate memory without increasing the JS object count. - KJS_MEM_LIMIT is already mostly broken, since it only aborts the script that breaches the limit, not any subsequent scripts. - We've never gotten bug reports about websites that would have benefited from an unbroken KJS_MEM_LIMIT. The initial check-in of KJS_MEM_LIMIT (KJS revision 80061) doesn't mention a website that needed it. - Any website that brings you anywhere close to crashing due to the number of live JS objects will almost certainly put up the "slow script" dialog at least 20 times beforehand. * kjs/collector.cpp: (KJS::Collector::collect): * kjs/collector.h: * kjs/nodes.cpp: (KJS::TryNode::execute): LayoutTests: Reviewed by Sam Weinig. Removing the test for KJS_MEM_LIMIT, since I removed KJS_MEM_LIMIT. * fast/js/out-of-memory-expected.txt: Removed. * fast/js/out-of-memory.html: Removed. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
- Make RegularExpression operate on Strings instead of DeprecatedStrings. * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::isXMLMIMEType): Use string instead of DeprecatedString to build up the RegularExpression. * page/Frame.cpp: (WebCore::createRegExpForLabels): Use String instead of DeprecatedString. (WebCore::Frame::searchForLabelsAboveCell): Ditto. (WebCore::Frame::searchForLabelsBeforeElement): Ditto. (WebCore::Frame::matchLabelsAgainstElement): Ditto. * page/Frame.h: * page/mac/FrameMac.mm: (WebCore::regExpForLabels): Ditto. (WebCore::Frame::searchForNSLabelsAboveCell): Ditto. (WebCore::Frame::searchForLabelsBeforeElement): Ditto. (WebCore::Frame::matchLabelsAgainstElement): Ditto. * platform/text/RegularExpression.cpp: (WebCore::RegularExpression::Private::Private): (WebCore::RegularExpression::Private::compile): (WebCore::RegularExpression::RegularExpression): (WebCore::RegularExpression::operator=): (WebCore::RegularExpression::pattern): (WebCore::RegularExpression::match): (WebCore::RegularExpression::search): (WebCore::RegularExpression::searchRev): (WebCore::replace): Added. * platform/text/RegularExpression.h: Change functions to take Strings as input instead of DeprecatedStrings and reduce the complexity of the class by removing unneeded globbing support. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30490 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
jhoneycutt@apple.com authored
Reviewed by Anders. <rdar://problem/5760360> REGRESSION(r30376): Crash loading plugin page during stress test (after only 5 min) - null dereference Full-frame plug-ins create PluginStream objects without loaders, as the PluginView receives the loading callbacks. We were trying to call setDefersLoading on these null pointers. * plugins/PluginStream.cpp: (WebCore::PluginStream::startStream): Add null check. (WebCore::PluginStream::destroyStream): Same. (WebCore::PluginStream::deliverData): Same. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
- Remove uses of DeprecatedString in Windows plugin code. * plugins/win/PluginPackageWin.cpp: (WebCore::getVersionInfo): Cleanup formatting. (WebCore::PluginPackage::freeLibraryTimerFired): Remove un-needed variable name. (WebCore::PluginPackage::storeFileVersion): Move casts. (WebCore::PluginPackage::fetchInfo): Use OwnArrayPtr and switch to more efficient use of Vectors. (WebCore::PluginPackage::load): Fix whitespace. (WebCore::PluginPackage::hash): Make the hashCodes const * plugins/win/PluginViewWin.cpp: (WebCore::makeURL): Use String instead of DeprecatedString. (WebCore::parseRFC822HeaderFields): Ditto. (WebCore::PluginView::handlePost): Ditto. (WebCore::PluginView::status): Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30488 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
- Don't use DeprecatedString in HTMLTokenizer. * html/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::finish): * platform/text/PlatformString.h: (WebCore::find): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
I added an m_webFrame member to WebFrameLoaderClient. This is slightly strange because WebFrame inherits from WebFrameLoaderClient, but this member will be needed once we remove the inheritance, so we might as well prepare for that now. Reviewed by Anders. * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::WebFrameLoaderClient): Changed to take a WebFrame* parameter. (WebFrameLoaderClient::hasWebView): Moved here from WebFrame.cpp. * WebCoreSupport/WebFrameLoaderClient.h: Added an m_webFrame parameter. * WebFrame.cpp: Removed hasWebView. (WebFrame::WebFrame): Updated for WebFrameLoaderClient constructor change. * WebFrame.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30485 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
<rdar://problem/5748781> https://bugs.webkit.org/show_bug.cgi?id=17413 REGRESSION: Latest Nightly doesn't load Java plugin w/Safari 3.1b Copy the Java plug-in over to the new location. * FindSafari/FindSafari.cpp: (_tmain): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30482 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
WebFrame now inherits from a new WebFrameLoaderClient class, which will gradually assume all FrameLoaderClient responsibilities. Once that process is complete, WebFrame will no longer inherit from WebFrameLoaderClient. In this first patch, I've only moved createDocumentLoader up to the WebFrameLoaderClient class. Reviewed by Anders. * WebCoreSupport/WebFrameLoaderClient.cpp: Added. (WebFrameLoaderClient::WebFrameLoaderClient): (WebFrameLoaderClient::~WebFrameLoaderClient): (WebFrameLoaderClient::createDocumentLoader): Moved here from WebFrame.cpp. * WebCoreSupport/WebFrameLoaderClient.h: Added. * WebFrame.cpp: Removed createDocumentLoader implementation. * WebFrame.h: Changed to inherit from WebFrameLoaderClient. * WebKit.vcproj/WebKit.vcproj: Added new files to the project. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
<rdar://problem/5747325> REGRESSION: HTTP layout tests hang * DumpRenderTree/win/DumpRenderTree.cpp: (runTest): Init the URL request with the correct timeout. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30480 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
Reviewed by Sam. * WebCoreSupport/FormValuesPropertyBag.cpp: Added. (FormValuesPropertyBag::QueryInterface): (FormValuesPropertyBag::AddRef): (FormValuesPropertyBag::Release): (FormValuesPropertyBag::Read): (FormValuesPropertyBag::Write): (FormValuesPropertyBag::CountProperties): (FormValuesPropertyBag::GetPropertyInfo): (FormValuesPropertyBag::LoadObject): * WebCoreSupport/FormValuesPropertyBag.h: Added. (FormValuesPropertyBag::FormValuesPropertyBag): * WebFrame.cpp: Deleted FormValuesPropertyBag code. * WebKit.vcproj/WebKit.vcproj: Added new files to the project. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30479 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
FrameWinClient was deleted back in r22965, but these methods were never deleted. Reviewed by Sam. * WebFrame.cpp: * WebFrame.h: Made one createFrame overload protected, since it's only called internally by WebFrame. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30478 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
aroben@apple.com authored
Reviewed by Anders. * WebKit.vcproj/WebKit.vcproj: Updated file paths, and added WebCoreSupport directory to the include path. * WebCoreSupport/WebChromeClient.cpp: Renamed from WebKit/win/WebChromeClient.cpp. * WebCoreSupport/WebChromeClient.h: Renamed from WebKit/win/WebChromeClient.h. * WebCoreSupport/WebContextMenuClient.cpp: Renamed from WebKit/win/WebContextMenuClient.cpp. * WebCoreSupport/WebContextMenuClient.h: Renamed from WebKit/win/WebContextMenuClient.h. * WebCoreSupport/WebDragClient.cpp: Renamed from WebKit/win/WebDragClient.cpp. * WebCoreSupport/WebDragClient.h: Renamed from WebKit/win/WebDragClient.h. * WebCoreSupport/WebEditorClient.cpp: Renamed from WebKit/win/WebEditorClient.cpp. * WebCoreSupport/WebEditorClient.h: Renamed from WebKit/win/WebEditorClient.h. * WebCoreSupport/WebInspectorClient.cpp: Renamed from WebKit/win/WebInspectorClient.cpp. * WebCoreSupport/WebInspectorClient.h: Renamed from WebKit/win/WebInspectorClient.h. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30477 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sullivan@apple.com authored
Reverted the changed from yesterday to add pasteAndMatchStyle:, as the existing pasteAsPlainText: has the same behavior. * WebView/WebHTMLView.mm: (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): (-[WebHTMLView readSelectionFromPasteboard:]): (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): (-[WebHTMLView pasteAsRichText:]): (-[WebHTMLView paste:]): * WebView/WebView.mm: * WebView/WebViewPrivate.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30476 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rdar://problem/5759327oliver@apple.com authored
Reviewed by Alexey P. Fix yet another case where we incorrectly relied on implicit double to bool coercion. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30475 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hyatt@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30474 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 21 Feb, 2008 16 commits
-
-
alp@webkit.org authored
Fix a configure script typo. * configure.ac: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30473 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
Reviewed by Anders Carlsson. Fix for <rdar://problem/5757946> - Parse URLs before checking whether they are javascript: urls (which require security checks). * bindings/js/JSAttrCustom.cpp: (WebCore::JSAttr::setValue): * bindings/js/JSElementCustom.cpp: (WebCore::allowSettingSrcToJavascriptURL): * bindings/js/JSHTMLFrameElementCustom.cpp: (WebCore::allowSettingJavascriptURL): * bindings/js/JSHTMLIFrameElementCustom.cpp: (WebCore::JSHTMLIFrameElement::setSrc): LayoutTests: Reviewed by Anders Carlsson. Update tests and results for <rdar://problem/5757946> * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom-expected.txt: * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-location-htmldom.html: * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-getAttribute-value-expected.txt: * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-getAttribute-value.html: * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-htmldom-expected.txt: * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-htmldom.html: * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-setAttribute-expected.txt: * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-setAttribute.html: * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-setAttributeNS-expected.txt: * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-setAttributeNS.html: * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-setAttributeNode-expected.txt: * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-setAttributeNode.html: * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-setAttributeNodeNS-expected.txt: * http/tests/security/javascriptURL/javascriptURL-execution-context-frame-src-setAttributeNodeNS.html: * http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-getAttribute-value-expected.txt: * http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-getAttribute-value.html: * http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-htmldom-expected.txt: * http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-htmldom.html: * http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-setAttribute-expected.txt: * http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-setAttribute.html: * http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-setAttributeNS-expected.txt: * http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-setAttributeNS.html: * http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-setAttributeNode-expected.txt: * http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-setAttributeNode.html: * http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-setAttributeNodeNS-expected.txt: * http/tests/security/javascriptURL/javascriptURL-execution-context-iframe-src-setAttributeNodeNS.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30472 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rdar://problem/5757873adachan@apple.com authored
We could get a buffer overrun in DeprecatedCString::find() if the end of the string matches a beginning portion of the substring, for example, if string is "a" but the substring is "ab". The code as is also will not match things correctly under certain situations since the inner while loop increments the index. For example, we wouldn't find a match if the string is "aab..." and the substring is "ab". Changed the inner while loop to increment a temporary index into str. Test: fast/loader/charset-parse.html Reviewed by Dan Berstein. * platform/DeprecatedCString.cpp: (WebCore::DeprecatedCString::find): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30468 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hyatt@apple.com authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
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
-
andersca@apple.com authored
Reviewed by Sam. Make more classes start out with a refcount of 1. * dom/QualifiedName.cpp: (WebCore::QNameComponentsTranslator::translate): (WebCore::QualifiedName::QualifiedName): * dom/QualifiedName.h: (WebCore::QualifiedName::QualifiedNameImpl::create): (WebCore::QualifiedName::QualifiedNameImpl::QualifiedNameImpl): * history/BackForwardList.cpp: (WebCore::BackForwardList::BackForwardList): * history/BackForwardList.h: (WebCore::BackForwardList::create): * page/Page.cpp: (WebCore::Page::Page): * platform/text/CString.cpp: (WebCore::CString::init): (WebCore::CString::newUninitialized): (WebCore::CString::copyBufferIfNeeded): * platform/text/CString.h: (WebCore::CStringBuffer::create): (WebCore::CStringBuffer::CStringBuffer): WebKit/mac: Reviewed by Sam. Use BackForwardList::create instead. * History/WebBackForwardList.mm: (-[WebBackForwardList init]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30465 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kevino@webkit.org authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30464 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sullivan@apple.com authored
support for pasteAndMatchStyle: command (see <rdar://problem/5723952>) * WebView/WebHTMLView.mm: (-[WebHTMLView _pasteWithPasteboard:allowPlainText:matchStyle:]): added matchStyle parameter, passed along to bridge (formerly always passed NO to bridge) (-[WebHTMLView readSelectionFromPasteboard:]): pass NO for new matchStyle parameter to match old behavior (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): validate pasteAndMatchStyle the same way as pasteAsRichText (-[WebHTMLView pasteAndMatchStyle:]): just like pasteAsRichText but passes YES for matchStyle (-[WebHTMLView pasteAsRichText:]): pass NO for new matchStyle parameter to match old behavior (-[WebHTMLView paste:]): ditto * WebView/WebView.mm: added macro(pasteAndMatchStyle) * WebView/WebViewPrivate.h: added pasteAndMatchStyle: to WebViewEditingActionsPendingPublic category git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30463 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
GTK+/autotools SVG experimental build fix Don't enable SVG filters in --enable-svg-experimental. This feature isn't supported at all yet. Developers can enable it explicitly by passing --enable-svg-filters if needed. * configure.ac: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30462 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
antti@apple.com authored
<rdar://problem/5753789> REGRESSION: 1.5% -2% Sunspider regression from r30009 (ebay photo upload hang) Ensure all versions of allowsAccessFrom are inlined to single functions. This is a 2% win in browser hosted Sunspider. * bindings/js/kjs_window.cpp: (KJS::Window::allowsAccessFrom): (KJS::Window::allowsAccessFromPrivate): * bindings/js/kjs_window.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30461 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
- minor cleanup * rendering/bidi.cpp: (WebCore::bidiNext): Removed redundant isBR() check -- isText() returns true for RenderLineBreak. (WebCore::bidiFirst): Ditto. (WebCore::shouldSkipWhitespaceAfterStartObject): (WebCore::RenderBlock::findNextLineBreak): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30460 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
alp@webkit.org authored
Reviewed by Alp Toker. http://bugs.webkit.org/show_bug.cgi?id=17445 [GTK] WebKit doesn't compile with LDFLAGS="-Wl,--as-needed" The GNUmakefile.am files make use of the LDFLAGS variable to include library additions such as -ljpeg etc. Unfortunately, if these inclusions aren't made in LIBADD/LDADD variables, then they are mis-ordered during the linking. The as-needed flag discards libraries whose functions have not been needed by earlier libraries, which therefore makes the ordering important. This moves all -l library inclusion statements from LDFLAGS variables to LIBADD/LDADD variables. * GNUmakefile.am: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30459 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ggaren@apple.com authored
Reviewed by David Harrison. Fixed <rdar://problem/5756125> REGRESSION: A crash occurs at WebCore::Frame::scriptProxy() when completing a search with Package Tracker widget Test: fast/dom/script-element-without-frame-crash.html * html/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::parseTag): Added back a NULL check that was accidentally removed in r30325. LayoutTests: Reviewed by David Harrison. Test for <rdar://problem/5756125> REGRESSION: A crash occurs at WebCore::Frame::scriptProxy() when completing a search with Package Tracker widget * fast/dom/script-element-without-frame-crash-expected.txt: Added. * fast/dom/script-element-without-frame-crash.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30458 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
pewtermoose@webkit.org authored
GTK+ build fix. s/domString()/string()/ * platform/graphics/gtk/FontPlatformDataGtk.cpp: (FontPlatformData::FontPlatformData): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30457 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig@apple.com authored
Gratuitous change to this test to use the instanceof operator instead of the isPrototypeOf method. * fast/tokenizer/doctype-search-reset.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30456 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
Reviewed by Dave Hyatt. - fix http://bugs.webkit.org/show_bug.cgi?id=17465 REGRESSION: <DIV> tokenized into Div if still searching for DOCTYPE Test: fast/tokenizer/doctype-search-reset.html * html/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::parseTag): LayoutTests: Reviewed by Dave Hyatt. - test for http://bugs.webkit.org/show_bug.cgi?id=17465 REGRESSION: <DIV> tokenized into Div if still searching for DOCTYPE * fast/tokenizer/doctype-search-reset-expected.txt: Added. * fast/tokenizer/doctype-search-reset.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30455 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 20 Feb, 2008 1 commit
-
-
mitz@apple.com authored
Reviewed by Dave Hyatt. - fix http://bugs.webkit.org/show_bug.cgi?id=17464 REGRESSION: Crash in RenderBlock::findNextLineBreak reading r30444 commit email in GMail Test: fast/text/wbr-in-pre-crash.html * rendering/bidi.cpp: (WebCore::RenderBlock::findNextLineBreak): LayoutTests: Reviewed by Dave Hyatt. - test for http://bugs.webkit.org/show_bug.cgi?id=17464 REGRESSION: Crash in RenderBlock::findNextLineBreak reading r30444 commit email in GMail * fast/text/wbr-in-pre-crash.html: Added. * platform/mac-leopard/fast/text/wbr-in-pre-crash-expected.checksum: Added. * platform/mac-leopard/fast/text/wbr-in-pre-crash-expected.png: Added. * platform/mac/fast/text/wbr-in-pre-crash-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30454 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-