- 20 Jan, 2014 4 commits
-
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=127322 <rdar://problem/15861296> Reviewed by Andreas Kling. * dom/DocumentStyleSheetCollection.cpp: (WebCore::DocumentStyleSheetCollection::updateInjectedStyleSheetCache): * page/PageGroup.cpp: (WebCore::PageGroup::addUserStyleSheetToWorld): (WebCore::PageGroup::removeUserStyleSheetFromWorld): (WebCore::PageGroup::removeUserStyleSheetsFromWorld): (WebCore::PageGroup::removeAllUserContent): * page/PageGroup.h: * page/UserContentController.cpp: (WebCore::UserContentController::addUserStyleSheet): (WebCore::UserContentController::removeUserStyleSheet): (WebCore::UserContentController::removeUserStyleSheets): (WebCore::UserContentController::removeAllUserContent): (WebCore::UserContentController::invalidateInjectedStyleSheetCacheInAllFrames): * page/UserContentController.h: (WebCore::UserContentController::userStyleSheets): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162395 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=127317 <rdar://problem/15861296> Reviewed by Andreas Kling. Move handling of user scripts from PageGroup to UserContentController. * page/Frame.cpp: (WebCore::Frame::injectUserScripts): * page/PageGroup.cpp: (WebCore::PageGroup::addUserScriptToWorld): (WebCore::PageGroup::removeUserScriptFromWorld): (WebCore::PageGroup::removeUserScriptsFromWorld): (WebCore::PageGroup::removeAllUserContent): * page/PageGroup.h: * page/UserContentController.cpp: (WebCore::UserContentController::addUserScript): (WebCore::UserContentController::removeUserScript): (WebCore::UserContentController::removeUserScripts): (WebCore::UserContentController::removeAllUserContent): * page/UserContentController.h: (WebCore::UserContentController::userScripts): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162384 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=127315 Reviewed by Andreas Kling. Add a UserContentController object to PageGroup and have the page group set it on any pages that are added to the page group. This is another step towards moving handling of user content away from PageGroup and make it possible for each page to have different user content. * page/Page.cpp: (WebCore::Page::~Page): (WebCore::Page::setUserContentController): * page/Page.h: (WebCore::Page::userContentController): * page/PageGroup.cpp: (WebCore::PageGroup::PageGroup): (WebCore::PageGroup::addPage): (WebCore::PageGroup::removePage): * page/PageGroup.h: * page/UserContentController.cpp: (WebCore::UserContentController::addPage): (WebCore::UserContentController::removePage): * page/UserContentController.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162380 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=127300 <rdar://problem/15861296> Reviewed by Dan Bernstein. This is the first step towards moving handling of user scripts and style sheets from the page group to a separate objects and ultimately make them be settable per page instead of per page group. * CMakeLists.txt: * GNUmakefile.list.am: * WebCore.vcxproj/WebCore.vcxproj: * WebCore.vcxproj/WebCore.vcxproj.filters: * WebCore.xcodeproj/project.pbxproj: * page/UserContentController.cpp: Added. (WebCore::UserContentController::create): (WebCore::UserContentController::UserContentController): (WebCore::UserContentController::~UserContentController): * page/UserContentController.h: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162372 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 03 Jan, 2014 1 commit
-
-
barraclough@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=126330 Reviewed by Sam Weinig. UserActivity is a mechanism to express to the operating system (where appropriate) that a user initiated activity is taking place, and as such that resources should be made available to the process accordingly. Currently we hold a single NSActivity, at the WebKit layer. This refactoring allows us to hold different activity tokens for different user actions (which simplifies the handling, and aides debugging since the token can more accurately express the activity taking place), and also will allow us to avoid the layering difficulty of calling back up the stack to WebKit to register that an activity is taking place. * WebCore.xcodeproj/project.pbxproj: - added new files. * platform/UserActivity.cpp: Added. (WebCore::UserActivity::UserActivity): - nop implementation - ignore description. (WebCore::UserActivity::beginActivity): (WebCore::UserActivity::endActivity): - nop implementation - just inc/dec m_count. * platform/UserActivity.h: Added. (WebCore::UserActivity::isActive): - returns true if one or more instance of this activity is in progress. * platform/mac/UserActivityMac.mm: Added. (WebCore::UserActivity::UserActivity): - constructor accepts one argument, a description string. (WebCore::UserActivity::isValid): - used by assertions. (WebCore::UserActivity::beginActivity): (WebCore::UserActivity::endActivity): - track start/end of an activity - calls to these methods should be balanced. (WebCore::UserActivity::hysteresisTimerFired): - used to implement hysteresis in releasing NSActivity. Source/WebKit2: VibrationPattern should allocate an single vector instance for single integer input https://bugs.webkit.org/show_bug.cgi?id=126417 Patch by Jinwoo Song <jinwoo7.song@samsung.com> on 2014-01-03 Reviewed by Gyuyoung Kim. Fix a vibration unit test regression after r161139. Also remove unnecessary test cases. * UIProcess/API/efl/tests/test_ewk2_view.cpp: (EWK2ViewTest::loadVibrationHTMLString): (TEST_F): Source/WTF: Refactor NSActivity handling code from ChildProcess to UserActivity https://bugs.webkit.org/show_bug.cgi?id=126330 Reviewed by Sam Weinig. UserActivity is a mechanism to express to the operating system (where appropriate) that a user initiated activity is taking place, and as such that resources should be made available to the process accordingly. Currently we hold a single NSActivity, at the WebKit layer. This refactoring allows us to hold different activity tokens for different user actions (which simplifies the handling, and aides debugging since the token can more accurately express the activity taking place), and also will allow us to avoid the layering difficulty of calling back up the stack to WebKit to register that an activity is taking place. * wtf/Platform.h: - added HAVE_NS_ACTIVITY. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 15 Apr, 2013 1 commit
-
-
andersca@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=114641 Reviewed by Alexey Proskuryakov. Source/JavaScriptCore: Move back the Weak constructor, destructor and clear() to Weak.h. Add a new weakClearSlowCase function and put it in Weak.cpp. * CMakeLists.txt: * GNUmakefile.list.am: * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj: * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters: * JavaScriptCore.xcodeproj/project.pbxproj: * Target.pri: * heap/Weak.cpp: Added. * heap/Weak.h: * heap/WeakInlines.h: * heap/WeakSetInlines.h: Source/WebCore: Remove ScriptWrappableInlines.h includes, they're not needed anymore. * css/WebKitCSSMatrix.cpp: * dom/ClientRect.cpp: * dom/ClientRectList.cpp: * dom/Clipboard.cpp: * dom/DOMStringMap.cpp: * dom/Event.cpp: * dom/MutationRecord.cpp: * fileapi/FileList.cpp: * page/BarInfo.cpp: * plugins/DOMMimeTypeArray.cpp: * plugins/DOMPlugin.cpp: * plugins/DOMPluginArray.cpp: * storage/Storage.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148479 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 08 Apr, 2013 1 commit
-
-
ggaren@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=114220 Reviewed by Sam Weinig. ../JavaScriptCore: I separated WeakInlines.h from Weak.h so WebCore data types that need to declare a Weak<T> data member don't have to #include all of the infrastructure for accessing that data member. This also required separating Weak<T> from PassWeak<T> by removing the WeakImplAccessor class template and pushing code down into its subclasses. * API/JSWeakObjectMapRefPrivate.cpp: * JavaScriptCore.xcodeproj/project.pbxproj: * bytecode/UnlinkedCodeBlock.h: * heap/PassWeak.h: (JSC): (PassWeak): (JSC::::PassWeak): (JSC::::operator): (JSC::::get): * heap/SlotVisitorInlines.h: * heap/Weak.h: (JSC): (Weak): * heap/WeakInlines.h: Copied from Source/JavaScriptCore/heap/Weak.h. (JSC): (JSC::::Weak): (JSC::::operator): (JSC::::get): (JSC::::was): (JSC::weakClear): * jit/JITThunks.h: * runtime/RegExpCache.h: * runtime/Structure.h: * runtime/WeakGCMap.h: ../WebCore: I separated ScriptWrappableInlines.h from ScriptWrappable.h so WebCore data types that inherit from ScriptWrappable don't have to #include all of the infrastructure for accessing that data member. * ForwardingHeaders/heap/PassWeak.h: Added. * ForwardingHeaders/heap/WeakInlines.h: Added. * WebCore.xcodeproj/project.pbxproj: * bindings/js/DOMWrapperWorld.h: * bindings/js/JSDOMBinding.h: (JSC): * bindings/js/JSEventListener.h: * bindings/js/JSMutationCallback.cpp: * bindings/js/JSNodeFilterCondition.h: * bindings/js/ScriptWrappable.h: (JSC): (WebCore): (ScriptWrappable): * bindings/js/ScriptWrappableInlines.h: Added. (WebCore): (WebCore::ScriptWrappable::wrapper): (WebCore::ScriptWrappable::setWrapper): (WebCore::ScriptWrappable::clearWrapper): * bridge/qt/qt_instance.h: * bridge/qt/qt_runtime.h: * bridge/runtime_root.cpp: * bridge/runtime_root.h: * css/StylePropertySet.cpp: * dom/LiveNodeList.cpp: (WebCore::LiveNodeListBase::reportMemoryUsage): * dom/Node.cpp: (WebCore::Node::reportMemoryUsage): * inspector/InspectorDebuggerAgent.cpp: * inspector/NetworkResourcesData.cpp: * loader/cache/CachedSVGDocument.cpp: * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::reportMemoryUsage): ../WebKit2: * Shared/WebCoreArgumentCoders.cpp: * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 08 Jan, 2011 1 commit
-
-
abarth@webkit.org authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 30 Jun, 2010 1 commit
-
-
https://bugs.webkit.org/show_bug.cgi?id=41146weinig@apple.com authored
<rdar://problem/8126069> Implement the .dataset DOM property Reviewed by Dan Bernstein. Tests: fast/dom/dataset-xhtml.xhtml fast/dom/dataset.html * DerivedSources.cpp: * DerivedSources.make: * GNUmakefile.am: * WebCore.gypi: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSDOMStringMapCustom.cpp: Added. (WebCore::JSDOMStringMap::canGetItemsForName): (WebCore::JSDOMStringMap::nameGetter): (WebCore::JSDOMStringMap::getOwnPropertyNames): (WebCore::JSDOMStringMap::deleteProperty): (WebCore::JSDOMStringMap::putDelegate): * bindings/js/JSDOMStringMapCustom.h: Added. * dom/DOMStringMap.cpp: Added. (WebCore::DOMStringMap::~DOMStringMap): * dom/DOMStringMap.h: Added. (WebCore::DOMStringMap::DOMStringMap): * dom/DOMStringMap.idl: Added. * dom/DatasetDOMStringMap.cpp: Added. (WebCore::isValidAttributeName): (WebCore::convertAttributeNameToPropertyName): (WebCore::propertyNameMatchesAttributeName): (WebCore::isValidPropertyName): (WebCore::convertPropertyNameToAttributeName): (WebCore::DatasetDOMStringMap::ref): (WebCore::DatasetDOMStringMap::deref): (WebCore::DatasetDOMStringMap::getNames): (WebCore::DatasetDOMStringMap::item): (WebCore::DatasetDOMStringMap::contains): (WebCore::DatasetDOMStringMap::setItem): (WebCore::DatasetDOMStringMap::deleteItem): * dom/DatasetDOMStringMap.h: Added. (WebCore::DatasetDOMStringMap::create): (WebCore::DatasetDOMStringMap::DatasetDOMStringMap): * dom/Element.cpp: (WebCore::Element::dataset): * dom/Element.h: * dom/Element.idl: * dom/ElementRareData.h: * page/DOMWindow.idl: LayoutTests: Test changes for https://bugs.webkit.org/show_bug.cgi?id=41146 <rdar://problem/8126069> Implement the .dataset DOM property Reviewed by Dan Bernstein. * fast/dom/Window/window-properties-expected.txt: * fast/dom/Window/window-property-descriptors-expected.txt: * fast/dom/dataset-expected.txt: Added. * fast/dom/dataset-xhtml-expected.txt: Added. * fast/dom/dataset-xhtml.xhtml: Added. * fast/dom/dataset.html: Added. * fast/dom/domListEnumeration-expected.txt: * fast/dom/prototype-inheritance-2-expected.txt: * fast/dom/prototype-inheritance-expected.txt: * fast/dom/script-tests/dataset-xhtml.js: Added. * fast/dom/script-tests/dataset.js: Added. * fast/dom/script-tests/domListEnumeration.js: * fast/js/global-constructors-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@62215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 04 Mar, 2010 2 commits
-
-
ossy@webkit.org authored
* WebCore.pro: - plugins/win/PluginDatabaseWin.cpp removed. - platform/win/WebCoreInstanceHandle.cpp added. * platform/win/WebCoreInstanceHandle.cpp: Remove explicit qualification in namespace declaration to make gcc happy. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
bdakin@apple.com authored
Page::instanceHandle into its own file just in the WebCore namespace. Reviewed by Anders Carlsson. Added WebCoreInstanceHandle.h + .cpp and removed PageWin.cpp * WebCore.vcproj/WebCore.vcproj: * page/win/PageWin.cpp: Removed. Remove all instance handle code from Page. * page/Page.h: New files. * platform/win/WebCoreInstanceHandle.cpp: Added. * platform/win/WebCoreInstanceHandle.h: Added. (WebCore::setInstanceHandle): (WebCore::instanceHandle): Switch to WebCore::instanceHandle() instead of Page::instanceHandle() and include the new header. * platform/graphics/win/WKCACFLayerRenderer.cpp: (WebCore::WKCACFLayerRenderer::acceleratedCompositingAvailable): * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::Pasteboard): * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenu::show): (WebCore::PopupMenu::registerClass): * platform/win/SharedTimerWin.cpp: (WebCore::initializeOffScreenTimerWindow): * plugins/win/PluginViewWin.cpp: (WebCore::registerPluginView): (WebCore::PluginView::platformStart): WebKit/win: WebCore::Page::setInstanceHandle() is now just WebCore::setInstanceHandle() Reviewed by Anders Carlsson. * WebKitDLL.cpp: (DllMain): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55542 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 07 Jan, 2010 1 commit
-
-
mitz@apple.com authored
Reviewed by Sam Weinig. No change in funcitonality * WebCore.xcodeproj/project.pbxproj: Added TypesettingFeatures.h. * platform/graphics/Font.h: (WebCore::Font::typesettingFeatures): Added. Determines the typesetting features from the text redndering mode. * platform/graphics/FontFastPath.cpp: (WebCore::Font::canUseGlyphCache): Use typesettingFeatures(). * platform/graphics/SimpleFontData.h: * platform/graphics/TypesettingFeatures.h: Added. * platform/graphics/mac/ComplexTextControllerATSUI.cpp: (WebCore::disableLigatures): Take TypesettingFeatures instead of TextRenderingMode. (WebCore::initializeATSUStyle): Ditto. (WebCore::ComplexTextController::collectComplexTextRunsForCharactersATSUI): Use typesettingFeatures(). * platform/graphics/mac/ComplexTextControllerCoreText.cpp: (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText): Ditto. * platform/graphics/mac/SimpleFontDataMac.mm: (WebCore::SimpleFontData::getCFStringAttributes): Take TypesettingFeatures instead of TextRenderingMode. * rendering/RenderBlockLineLayout.cpp: (WebCore::RenderBlock::findNextLineBreak): Use TypesettingFeatures(). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 18 Dec, 2009 1 commit
-
-
weinig@apple.com authored
Reviewed by Dan Bernstein. WebKit: * WebKit.xcodeproj/project.pbxproj: WebKit/mac: * Misc/WebKitErrors.m: (registerErrors): Add Geolocation errors. * Misc/WebKitErrorsPrivate.h: * WebCoreSupport/WebGeolocationControllerClient.h: Added. (WebGeolocationControllerClient::webView): * WebCoreSupport/WebGeolocationControllerClient.mm: Added. (WebGeolocationControllerClient::WebGeolocationControllerClient): (WebGeolocationControllerClient::startUpdating): (WebGeolocationControllerClient::stopUpdating): (WebGeolocationControllerClient::lastPosition): Add implementation of the WebGeolocationControllerClient. * WebView/WebGeolocationPosition.h: Added. * WebView/WebGeolocationPosition.mm: Added. (-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]): (core): (-[WebGeolocationPosition initWithTimestamp:latitude:longitude:accuracy:]): * WebView/WebGeolocationPositionInternal.h: Added. Add an Objective-C wrapper for GeolocationPosition. * WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): Set the GeolocationControllerClient. (-[WebView _setGeolocationProvider:]): Set the GeolocationProvider (-[WebView _geolocationProvider]): Return the GeolocationProvider. (-[WebView _geolocationDidChangePosition:]): Notify WebCore that the position changed. (-[WebView _geolocationDidFailWithError:]): Notify WebCore that an error occured. * WebView/WebViewData.h: * WebView/WebViewPrivate.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 19 Nov, 2009 1 commit
-
-
ap@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=31690 Make SocketStreamHandleCFNet work on Windows * WebCore.vcproj/WebCore.vcproj: Added LoaderRunLoopCF. * platform/network/ResourceHandle.h: Removed loaderRunLoop(). * platform/network/cf/LoaderRunLoopCF.cpp: Added. (WebCore::emptyPerform): (WebCore::runLoaderThread): (WebCore::loaderRunLoop): * platform/network/cf/LoaderRunLoopCF.h: Added. Moved the run loop that we use for CFNetwork from ResourceHandle to its own file, because it's needed for more than just resource loading. * platform/network/cf/ResourceHandleCFNet.cpp: Use loaderRunLoop() from its new location. * platform/network/cf/DNSCFNet.cpp: (WebCore::DNSResolveQueue::resolve): Ditto. * platform/network/cf/SocketStreamHandle.h: Added static callbacks for forwarding events to main thread. * platform/network/cf/SocketStreamHandleCFNet.cpp: (WebCore::SocketStreamHandle::SocketStreamHandle): Use loaderRunLoop() on Windows instead of inoperable main run loop. (WebCore::MainThreadEventCallbackInfo::MainThreadEventCallbackInfo): (WebCore::SocketStreamHandle::readStreamCallback): (WebCore::SocketStreamHandle::writeStreamCallback): (WebCore::SocketStreamHandle::readStreamCallbackMainThread): (WebCore::SocketStreamHandle::writeStreamCallbackMainThread): Forward stream events to main thread on Windows. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 10 Nov, 2009 2 commits
-
-
ap@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=31312 Decouple authentication panel callbacks from ResourceHandle No change in functionality. SocketStreamHandle also needs to request credentials, so it's not appropriate to store ResourceHandle as delegate. WebCore: * WebCore.vcproj/WebCore.vcproj: * platform/network/AuthenticationClient.h: Added. Added a new interface for listening to authentication panel notifications. * WebCore.xcodeproj/project.pbxproj: Added AuthenticationClient.h. Let Visual Studio do what it wants with the project file. (WebCore::AuthenticationClient::ref): Using our usual method of exposing refcounting on an interface class. (WebCore::AuthenticationClient::deref): Ditto. * platform/network/ResourceHandle.h: (WebCore::ResourceHandle::refAuthenticationClient): Ditto. (WebCore::ResourceHandle::derefAuthenticationClient): Ditto. * platform/network/cf/AuthenticationCF.cpp: (WebCore::AuthenticationChallenge::AuthenticationChallenge): (WebCore::AuthenticationChallenge::platformCompare): * platform/network/cf/AuthenticationChallenge.h: (WebCore::AuthenticationChallenge::authenticationClient): * platform/network/chromium/AuthenticationChallenge.h: (WebCore::AuthenticationChallenge::authenticationClient): * platform/network/curl/AuthenticationChallenge.h: (WebCore::AuthenticationChallenge::authenticationClient): Keeping a reference to AuthenticationClient, not to ResourceHandle. WebKit: * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge): * WebURLAuthenticationChallenge.cpp: (WebURLAuthenticationChallenge::initWithAuthenticationChallenge): (WebURLAuthenticationChallenge::sender): * WebURLAuthenticationChallengeSender.cpp: (WebURLAuthenticationChallengeSender::WebURLAuthenticationChallengeSender): (WebURLAuthenticationChallengeSender::createInstance): (WebURLAuthenticationChallengeSender::authenticationClient): * WebURLAuthenticationChallengeSender.h: * WebURLAuthenticationChallengeSenderCFNet.cpp: (WebURLAuthenticationChallengeSender::cancelAuthenticationChallenge): (WebURLAuthenticationChallengeSender::continueWithoutCredentialForAuthenticationChallenge): (WebURLAuthenticationChallengeSender::useCredential): Adjusted for WebCore changes. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
Reviewed by Eric Carlson and Darin Adler. * WebCore.Video.exp: Sorted and added HTMLMediaElement::beginScrubbing() and HTMLMediaElement::endScrubbing(). WebKit/mac: WebKit part of making full-screen video pause during scrubbing. Reviewed by Eric Carlson and Darin Adler. * WebView/WebVideoFullscreenHUDWindowController.h: Added _isScrubbing ivar. * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController dealloc]): Assert that _isScrubbing is NO. (-[WebVideoFullscreenHUDWindowController endScrubbing]): Call HTMLMediaElement::endScrubbing(). (-[WebVideoFullscreenHUDWindowController timelinePositionChanged:]): If scrubbing has just begun, call HTMLMediaElement::beginScrubbing() and schedule -endScrubbing to be called when mouse tracking ends. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 08 Nov, 2009 1 commit
-
-
mitz@apple.com authored
the end of the video is reached. Reviewed by Eric Carlson. * WebView/WebVideoFullscreenHUDWindowController.h: Cleaned up. * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Updated for the renaming of -updateRate to -updatePlayButton. (-[WebVideoFullscreenHUDWindowController updatePlayButton]): Renamed -updateRate to this. (-[WebVideoFullscreenHUDWindowController updateRate]): This method now responds to changes to the playback rate by updating the play button and showing or hiding the HUD as necessary. (-[WebVideoFullscreenHUDWindowController togglePlaying:]): Now only toggles playing. UI updates are driven by -updateRate being called. (-[WebVideoFullscreenHUDWindowController playing]): Cleaned up. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 02 Nov, 2009 2 commits
-
-
mitz@apple.com authored
video. Reviewed by Anders Carlsson. Made other cleanup. * WebView/WebVideoFullscreenHUDWindowController.h: Reverted the types of _timeline and _volumeSlider to the more generic NSControl. * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Cleaned up style. (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Added an assertion that the cast to NSButton * is legal. Removed casts. (-[WebVideoFullscreenHUDWindowController updateTime]): Use -setValue:forKey: instead of an NSSlider method. (timeToString): Changed to support only non-negative values and simplified. (-[WebVideoFullscreenHUDWindowController remainingTimeText]): Always prepend a “-” to the time. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
QuickTime Player X’s HUD. Reviewed by John Sullivan. * WebView/WebVideoFullscreenHUDWindowController.h: Removed unnecessary #import statements, cleaned up style, and changed _timeline, _volumeSlider and _playButton to have more specific types. * WebView/WebVideoFullscreenHUDWindowController.mm: Updated #import statements. (webkit_CGFloor): Added this helper function. (-[WebVideoFullscreenHUDWindowController init]): Cleaned up style. (createTimeTextField): Changed to use the bold system font. (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Changed the subviews’ metrics and the text fields’ text alignment. (-[WebVideoFullscreenHUDWindowController updateTime]): Avoid conversion from double to float. (stringToTimeTextAttributed): Removed this useless function that returned an NSAttributedString masquerading as an NSString. (-[WebVideoFullscreenHUDWindowController remainingTimeText]): Removed call to stringToTimeTextAttributed(). (-[WebVideoFullscreenHUDWindowController elapsedTimeText]): Ditto. WebKitLibraries: WebKitSystemInterface part of making the appearance of the full-screen video HUD match QuickTime Player X’s HUD. Reviewed by John Sullivan. * libWebKitSystemInterfaceLeopard.a: * libWebKitSystemInterfaceSnowLeopard.a: * libWebKitSystemInterfaceTiger.a: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50410 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 28 Oct, 2009 1 commit
-
-
eric.carlson@apple.com authored
Reviewed by Simon Fraser. <rdar://problem/7303145> Can't exit full screen mode or restart movie after pressing command -R. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::removedFromDocument): (WebCore::HTMLMediaElement::documentWillBecomeInactive): Exit from fullscreen if necessary. * html/HTMLMediaElement.h: 2009-10-28 Eric Carlson <eric.carlson@apple.com> Reviewed by Simon Fraser. <rdar://problem/7303145> Can't exit full screen mode or restart movie after pressing command -R. * WebView/WebVideoFullscreenController.mm: (-[WebVideoFullscreenController _requestExit]): New, call media element's exitFullscreen method. (-[WebVideoFullscreenController requestExitFullscreenWithAnimation:]): Call mediaElement->exitFullscreen() after a delay as it turns around and calls WebVideoFullscreenController:exitFullscreen. * WebView/WebVideoFullscreenHUDWindowController.h: * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindow resignFirstResponder]): New, don't give up responder status. (-[WebVideoFullscreenHUDWindow performKeyEquivalent:]): New, block all command key events. (-[WebVideoFullscreenHUDWindowController exitFullscreen:]): Remember when we are in the process of exiting fullscreen, don't allow recursion. * WebView/WebView.mm: (-[WebView _exitFullscreen]): Early return if fullscreen controller is nil. * WebView/WebWindowAnimation.h: Correct comment about _window retain status. * WebView/WebWindowAnimation.m: (-[WebWindowScaleAnimation dealloc]): Don't release _window, we never reatained it. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 22 Oct, 2009 1 commit
-
-
eric.carlson@apple.com authored
Reviewed by Dan Bernstein & Simon Fraser. <rdar://problem/7297717> https://bugs.webkit.org/show_bug.cgi?id=30323 Play/pause button in full-screen video controller does not reflect current state * WebView/WebVideoFullscreenController.mm: (-[WebVideoFullscreenController setMediaElement:WebCore::]): Register for QTMovieRateDidChangeNotification (-[WebVideoFullscreenController rateChanged:]): Call HUD controller when rate changes. * WebView/WebVideoFullscreenHUDWindowController.h: * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Call updateRate so play button reflects playback state. (-[WebVideoFullscreenHUDWindowController updateRate]): New, set play button state according to movie state. (-[WebVideoFullscreenHUDWindowController playingChanged:]): Only call [self playing] once. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49948 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 05 Oct, 2009 2 commits
-
-
simon.fraser@apple.com authored
Build fixes for Tiger. * WebView/WebVideoFullscreenHUDWindowController.h: * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindow initWithContentRect:styleMask:backing:defer:]): (-[WebVideoFullscreenHUDWindowController dealloc]): (-[WebVideoFullscreenHUDWindowController closeWindow]): (-[WebVideoFullscreenHUDWindowController windowDidLoad]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49140 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
simon.fraser@apple.com authored
Reviewed by Simon Fraser Support fullscreen in MediaPlayer (Mac) https://bugs.webkit.org/show_bug.cgi?id=26742 Add a fullscreen button to the <video> controller if the media engine, and the theme have support for fullscreen, and can show appropriate controls. Clicking the button calls through the ChromeClient to the WebVideoFullscreenController in WebKit to do a nice animation to fullscreen, with a custom controller. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49136 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 08 Sep, 2009 1 commit
-
-
cmarrin@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=29010 This adds several new CanvasXXXArray classes each of which has a custom constructor and custom getters and setters. Also changed CanvasRenderingContext3D and GraphicsContext3D to match the new and changed API. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48150 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 27 Aug, 2009 1 commit
-
-
cmarrin@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=28018 This hooks everything up and provides a working implementation of Canvas 3D. I plumb the creation of the 3D canvas down to GraphicsLayer, passing the opaque context and texture pointers so a Canvas3DLayer can be created (more on that later). It also plumbs changes to the 3D canvas so that Canvas3DLayer can recomposite the results. A 3D Canvas element needs a RenderLayer and compositing layer to render. This is because it renders to an off-screen texture in the GPU and then hands it to a Canvas3DLayer, which is a subclass of CAOpenGLLayer, to render that texture as a 3D quad. This keeps everything in GPU memory to maximize performance. When a CanvasRenderingContext3D is created it forces a style recalc which creates the RenderLayer and compositing layer if needed. I repurposed an existing flag which was put in place for animation to accomplish this. This flag is passed to setNeedsStyleRecalc(), and I renamed it from AnimationStyleChange to SyntheticStyleChange. It essentially says that you need to do a complete style recalc, even though the style itself has not really changed. This patch also fixes a couple of bugs discovered when testing with 3d-canvas turned on. I also added a constructor DOMWindow.idl for CanvasRenderingContext3D. This is needed when making a JS wrapper for the object so the prototype property can be set. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 25 Aug, 2009 2 commits
-
-
cmarrin@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=28018 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cmarrin@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=28018 This also hooks up CanvasRenderingContext as the common base class for CanvasRenderingContext2D and CanvasRenderingContext3D. And it adds a bit of logic throughout to support the new CanvasRenderingContext3D object. But nothing is hooked up yet. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 24 Aug, 2009 1 commit
-
-
cmarrin@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=28018 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47708 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 12 Aug, 2009 1 commit
-
-
darin@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=28194 Patch by Darin Adler <darin@apple.com> on 2009-08-12 Reviewed by Geoff Garen. * GNUmakefile.am: Added the two new source files. * WebCore.gypi: Ditto. * WebCore.pro: Ditto. * WebCore.vcproj/WebCore.vcproj: Ditto. * WebCore.xcodeproj/project.pbxproj: Ditto. * WebCoreSources.bkl: Ditto. * bindings/js/JSCSSRuleListCustom.cpp: Added. (WebCore::JSCSSRuleList::markChildren): Call markDOMObjectWrapper on rules in the list. * bindings/js/JSCSSStyleDeclarationCustom.cpp: (WebCore::JSCSSStyleDeclaration::markChildren): Added. Call markDOMObjectWrapper on the CSSValue objects that are owned by the declaration as values of the properties. * bindings/js/JSDOMBinding.cpp: (WebCore::isObservableThroughDOM): Added code to handle some cases where nodes are observable because they own objects that in turn have custom properties. * bindings/js/JSDOMBinding.h: Fix a typo in the header. * bindings/js/JSDocumentCustom.cpp: (WebCore::JSDocument::markChildren): Added call to markDOMObjectWrapper for implementation and styleSheets. * bindings/js/JSElementCustom.cpp: (WebCore::JSElement::markChildren): Added. Calls markDOMObjectWrapper for attributes and style. * bindings/js/JSHTMLCanvasElementCustom.cpp: Added. (WebCore::JSHTMLCanvasElement::markChildren): Call markDOMObjectWrapper on the rendering context. * bindings/js/JSStyleSheetCustom.cpp: (WebCore::JSStyleSheet::markChildren): Call markDOMObjectWrapper on items in the stylesheet. * bindings/js/JSStyleSheetListCustom.cpp: (WebCore::JSStyleSheetList::markChildren): Added. Calls markDOMObjectWrapper on stylesheets in the list. * css/CSSRuleList.idl: Added CustomMarkFunction. * css/CSSStyleDeclaration.idl: Ditto. * css/StyleSheetList.idl: Ditto. * dom/Element.idl: Ditto. * html/HTMLCanvasElement.idl: Ditto. * dom/Element.h: Made everything private that could be. Added access to the attributeMap that does returns the existing map without doing any of the lazy-updating work. This is needed to get at the existing attributes during garbage collection without having side effects. * html/HTMLCanvasElement.h: Cleaned up the header a bit, making members private. Added renderingContext2D function for use in JSHTMLCanvasElement::markChildren. LayoutTests: Custom properties on DOM objects are lost after GC (as demonstrated by the gc-9.html test) https://bugs.webkit.org/show_bug.cgi?id=28194 Patch by Darin Adler <darin@apple.com> on 2009-08-12 Reviewed by Geoff Garen. * fast/dom/gc-9-expected.txt: Regenerated. * fast/dom/gc-9.html: Updated to expect correct behavior instead of failures. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 22 Sep, 2008 1 commit
-
-
mjs@apple.com authored
2008-09-22 Maciej Stachowiak <mjs@apple.com> Reviewed by Dave Hyatt. Based on initial work by Darin Adler. - replace masqueradesAsUndefined virtual method with a flag in TypeInfo - use this to JIT inline code for eq_null and neq_null https://bugs.webkit.org/show_bug.cgi?id=20823 0.5% speedup on SunSpider ~4% speedup on Richards benchmark * VM/CTI.cpp: (JSC::CTI::privateCompileMainPass): * VM/Machine.cpp: (JSC::jsTypeStringForValue): (JSC::jsIsObjectType): (JSC::Machine::privateExecute): (JSC::Machine::cti_op_is_undefined): * VM/Machine.h: * kjs/JSCell.h: * kjs/JSValue.h: * kjs/StringObjectThatMasqueradesAsUndefined.h: (JSC::StringObjectThatMasqueradesAsUndefined::create): (JSC::StringObjectThatMasqueradesAsUndefined::createStructureID): * kjs/StructureID.h: (JSC::StructureID::mutableTypeInfo): * kjs/TypeInfo.h: (JSC::TypeInfo::TypeInfo): (JSC::TypeInfo::masqueradesAsUndefined): * kjs/operations.cpp: (JSC::equal): * masm/X86Assembler.h: (JSC::X86Assembler::): (JSC::X86Assembler::setne_r): (JSC::X86Assembler::setnz_r): (JSC::X86Assembler::testl_i32m): WebCore: 2008-09-22 Maciej Stachowiak <mjs@apple.com> Reviewed by Dave Hyatt. Based on initial work by Darin Adler. - replace masqueradesAsUndefined virtual method with a flag in TypeInfo - use this to JIT inline code for eq_null and neq_null https://bugs.webkit.org/show_bug.cgi?id=20823 * WebCore.xcodeproj/project.pbxproj: * WebCore.vcproj/WebCore.vcproj: * bindings/js/JSCSSStyleDeclarationCustom.cpp: (WebCore::JSCSSStyleDeclaration::nameGetter): * bindings/js/JSHTMLAllCollection.cpp: Added. (WebCore::): * bindings/js/JSHTMLAllCollection.h: (WebCore::JSHTMLAllCollection::createStructureID): (WebCore::JSHTMLAllCollection::toBoolean): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 08 Jan, 2008 1 commit
-
-
mitz@apple.com authored
- rename FontDataBaseClass.{cpp,h} back to FontData.{cpp,h} * GNUmakefile.am: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * WebCoreSources.bkl: * editing/Editor.cpp: * platform/graphics/FontData.cpp: Copied from WebCore/platform/graphics/FontDataBaseClass.cpp. * platform/graphics/FontData.h: Copied from WebCore/platform/graphics/FontDataBaseClass.h. * platform/graphics/FontDataBaseClass.cpp: Removed. * platform/graphics/FontDataBaseClass.h: Removed. * platform/graphics/SegmentedFontData.h: * platform/graphics/SimpleFontData.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 07 Jan, 2008 1 commit
-
-
mitz@apple.com authored
Reviewed by Dave Hyatt. - <rdar://problem/5665216> Support the unicode-range property in @font-face rules * GNUmakefile.am: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * WebCoreSources.bkl: * bindings/objc/DOM.mm: * bridge/mac/WebCoreAXObject.mm: * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): * css/CSSFontFace.cpp: (WebCore::CSSFontFace::fontLoaded): Changed to call the owning segmented font face. (WebCore::CSSFontFace::getFontData): * css/CSSFontFace.h: (WebCore::CSSFontFace::CSSFontFace): (WebCore::CSSFontFace::setSegmentedFontFace): * css/CSSFontFaceSource.cpp: (WebCore::CSSFontFaceSource::pruneTable): Removed the calls to GlyphPageTreeNode::pruneTreeCustomFontData because the fonts in the font table are not exposed in the glyph page tree. Only the segmented font is, and that is taken care of by the segmented font face. (WebCore::CSSFontFaceSource::getFontData): * css/CSSFontFaceSource.h: * css/CSSFontSelector.cpp: (WebCore::CSSFontSelector::addFontFaceRule): Changed to collect @font-face rules with the same family and traits into a single segmented font face, instead of just retaining the most recent one. (WebCore::CSSFontSelector::fontLoaded): (WebCore::CSSFontSelector::getFontData): * css/CSSFontSelector.h: * css/CSSGrammar.y: * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): (WebCore::CSSParser::parseFontFaceUnicodeRange): Added. Parses a unicode range value. * css/CSSParser.h: * css/CSSPrimitiveValue.h: (WebCore::CSSPrimitiveValue::): * css/CSSPropertyNames.in: * css/CSSSegmentedFontFace.cpp: Added. (WebCore::CSSSegmentedFontFace::CSSSegmentedFontFace): (WebCore::CSSSegmentedFontFace::~CSSSegmentedFontFace): (WebCore::CSSSegmentedFontFace::pruneTable): (WebCore::CSSSegmentedFontFace::isLoaded): (WebCore::CSSSegmentedFontFace::isValid): (WebCore::CSSSegmentedFontFace::fontLoaded): (WebCore::CSSSegmentedFontFace::overlayRange): (WebCore::CSSSegmentedFontFace::getFontData): * css/CSSSegmentedFontFace.h: Added. (WebCore::FontFaceRange::FontFaceRange): (WebCore::FontFaceRange::from): (WebCore::FontFaceRange::to): (WebCore::FontFaceRange::fontFace): (WebCore::CSSSegmentedFontFace::fontSelector): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyProperty): * css/CSSUnicodeRangeValue.cpp: Added. (WebCore::CSSUnicodeRangeValue::~CSSUnicodeRangeValue): (WebCore::CSSUnicodeRangeValue::cssText): * css/CSSUnicodeRangeValue.h: Added. (WebCore::CSSUnicodeRangeValue::CSSUnicodeRangeValue): (WebCore::CSSUnicodeRangeValue::from): (WebCore::CSSUnicodeRangeValue::to): * css/SVGCSSFontFace.cpp: (WebCore::SVGCSSFontFace::getFontData): * css/SVGCSSFontFace.h: * editing/Editor.cpp: (WebCore::Editor::fontForSelection): * editing/Editor.h: * page/mac/FrameMac.mm: * page/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge fontForSelection:]): * platform/graphics/Font.cpp: (WebCore::WidthIterator::advance): (WebCore::Font::glyphDataForCharacter): (WebCore::Font::primaryFont): Changed to return the simple font data used for the space character. (WebCore::Font::fontDataAt): (WebCore::Font::fontDataForCharacters): (WebCore::Font::drawGlyphBuffer): * platform/graphics/Font.h: * platform/graphics/FontCache.cpp: (WebCore::FontCache::getCachedFontData): (WebCore::FontCache::getFontData): * platform/graphics/FontCache.h: * platform/graphics/FontData.cpp: Renamed to SimpleFontData.cpp * platform/graphics/FontData.h: Renamed to SimpleFontData.cpp. * platform/graphics/FontDataBaseClass.cpp: Added. This will be renamed FontData.cpp. (WebCore::FontData::~FontData): * platform/graphics/FontDataBaseClass.h: Added. This will be renamed FontData.h. * platform/graphics/FontFallbackList.cpp: (WebCore::FontFallbackList::determinePitch): (WebCore::FontFallbackList::fontDataAt): (WebCore::FontFallbackList::fontDataForCharacters): * platform/graphics/FontFallbackList.h: (WebCore::FontFallbackList::primaryFont): * platform/graphics/FontSelector.h: * platform/graphics/GlyphBuffer.h: (WebCore::GlyphBuffer::fontDataAt): (WebCore::GlyphBuffer::swap): (WebCore::GlyphBuffer::add): * platform/graphics/GlyphPageTreeNode.cpp: (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData): (WebCore::GlyphPageTreeNode::initializePage): Added code to initialize pages for segmented font data. (WebCore::GlyphPageTreeNode::getChild): (WebCore::GlyphPageTreeNode::pruneCustomFontData): * platform/graphics/GlyphPageTreeNode.h: (WebCore::GlyphPage::setGlyphDataForCharacter): (WebCore::GlyphPage::setGlyphDataForIndex): (WebCore::GlyphPageTreeNode::getRootChild): * platform/graphics/SegmentedFontData.cpp: Added. (WebCore::SegmentedFontData::~SegmentedFontData): (WebCore::SegmentedFontData::fontDataForCharacter): (WebCore::SegmentedFontData::containsCharacters): (WebCore::SegmentedFontData::isCustomFont): (WebCore::SegmentedFontData::isLoading): (WebCore::SegmentedFontData::isSegmented): * platform/graphics/SegmentedFontData.h: Added. (WebCore::FontDataRange::FontDataRange): (WebCore::FontDataRange::from): (WebCore::FontDataRange::to): (WebCore::FontDataRange::fontData): (WebCore::SegmentedFontData::appendRange): (WebCore::SegmentedFontData::numRanges): (WebCore::SegmentedFontData::rangeAt): * platform/graphics/SimpleFontData.cpp: Copied from WebCore/platform/graphics/FontData.cpp. (WebCore::SimpleFontData::SimpleFontData): (WebCore::SimpleFontData::~SimpleFontData): (WebCore::SimpleFontData::ascent): (WebCore::SimpleFontData::descent): (WebCore::SimpleFontData::widthForGlyph): (WebCore::SimpleFontData::fontDataForCharacter): (WebCore::SimpleFontData::isSegmented): * platform/graphics/SimpleFontData.h: Copied from WebCore/platform/graphics/FontData.h. (WebCore::SimpleFontData::isCustomFont): (WebCore::SimpleFontData::isLoading): * platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::setPlatformFont): * platform/graphics/gtk/FontCacheGtk.cpp: (WebCore::FontCache::getFontDataForCharacters): * platform/graphics/gtk/FontDataGtk.cpp: Renamed to SimpleFontDataGtk.cpp. * platform/graphics/gtk/FontGtk.cpp: (WebCore::Font::drawGlyphs): * platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp: (WebCore::GlyphPage::fill): * platform/graphics/gtk/SimpleFontDataGtk.cpp: Copied from WebCore/platform/graphics/gtk/FontDataGtk.cpp. (WebCore::SimpleFontData::platformInit): (WebCore::SimpleFontData::platformDestroy): (WebCore::SimpleFontData::smallCapsFontData): (WebCore::SimpleFontData::containsCharacters): (WebCore::SimpleFontData::determinePitch): (WebCore::SimpleFontData::platformWidthForGlyph): (WebCore::SimpleFontData::setFont): * platform/graphics/mac/FontCacheMac.mm: (WebCore::FontCache::getFontDataForCharacters): * platform/graphics/mac/FontDataMac.mm: Renamed to SimpleFontDataMac.mm. * platform/graphics/mac/FontMac.mm: (WebCore::initializeATSUStyle): (WebCore::overrideLayoutOperation): (WebCore::ATSULayoutParameters::initialize): (WebCore::Font::drawGlyphs): * platform/graphics/mac/GlyphPageTreeNodeMac.cpp: (WebCore::GlyphPage::fill): * platform/graphics/mac/SimpleFontDataMac.mm: Copied from WebCore/platform/graphics/mac/FontDataMac.mm. (WebCore::initFontData): (WebCore::SimpleFontData::platformInit): (WebCore::SimpleFontData::platformDestroy): (WebCore::SimpleFontData::smallCapsFontData): (WebCore::SimpleFontData::containsCharacters): (WebCore::SimpleFontData::determinePitch): (WebCore::SimpleFontData::platformWidthForGlyph): (WebCore::SimpleFontData::checkShapesArabic): * platform/graphics/qt/FontDataQt.cpp: Renamed to SimpleFontDataQt.cpp. * platform/graphics/qt/GlyphPageTreeNodeQt.cpp: (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData): * platform/graphics/qt/SimpleFontDataQt.cpp: Copied from WebCore/platform/graphics/qt/FontDataQt.cpp. * platform/graphics/win/FontCacheWin.cpp: (WebCore::FontCache::getFontDataForCharacters): * platform/graphics/win/FontDataWin.cpp: Renamed to SimpleFontDataWin.cpp. * platform/graphics/win/FontWin.cpp: (WebCore::Font::drawGlyphs): * platform/graphics/win/GlyphPageTreeNodeWin.cpp: (WebCore::GlyphPage::fill): * platform/graphics/win/SimpleFontDataWin.cpp: Copied from WebCore/platform/graphics/win/FontDataWin.cpp. (WebCore::SimpleFontData::setShouldApplyMacAscentHack): (WebCore::SimpleFontData::platformInit): (WebCore::SimpleFontData::platformDestroy): (WebCore::SimpleFontData::smallCapsFontData): (WebCore::SimpleFontData::containsCharacters): (WebCore::SimpleFontData::determinePitch): (WebCore::SimpleFontData::platformWidthForGlyph): (WebCore::SimpleFontData::scriptFontProperties): * platform/graphics/wx/FontCacheWx.cpp: (WebCore::FontCache::getFontDataForCharacters): * platform/graphics/wx/FontDataWx.cpp: Renamed to SimpleFontDataWx.cpp. * platform/graphics/wx/FontWx.cpp: (WebCore::Font::drawGlyphs): * platform/graphics/wx/GlyphMapWx.cpp: (WebCore::GlyphPage::fill): * platform/graphics/wx/SimpleFontDataWx.cpp: Copied from WebCore/platform/graphics/wx/FontDataWx.cpp. (WebCore::SimpleFontData::platformInit): (WebCore::SimpleFontData::platformDestroy): (WebCore::SimpleFontData::smallCapsFontData): (WebCore::SimpleFontData::containsCharacters): (WebCore::SimpleFontData::determinePitch): (WebCore::SimpleFontData::platformWidthForGlyph): * platform/mac/FileChooserMac.mm: * platform/mac/PopupMenuMac.mm: * platform/mac/WebCoreTextRenderer.mm: * platform/win/PopupMenuWin.cpp: * platform/win/UniscribeController.cpp: (WebCore::UniscribeController::advance): (WebCore::UniscribeController::itemizeShapeAndPlace): (WebCore::UniscribeController::shapeAndPlaceItem): (WebCore::UniscribeController::shape): * platform/win/UniscribeController.h: * svg/SVGFont.cpp: (WebCore::Font::drawGlyphsWithSVGFont): * svg/SVGFontElement.cpp: (WebCore::SVGFontElement::collectGlyphs): * svg/SVGFontFaceElement.cpp: (WebCore::SVGFontFaceElement::createFontData): * svg/SVGFontFaceElement.h: * svg/SVGGlyphElement.cpp: WebKit/mac: Reviewed by Dave Hyatt. - <rdar://problem/5665216> Support the unicode-range property in @font-face rules * Misc/WebNSAttributedStringExtras.mm: WebKit/win: Reviewed by Dave Hyatt. - <rdar://problem/5665216> Support the unicode-range property in @font-face rules * WebView.cpp: (WebView::setShouldApplyMacFontAscentHack): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29250 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
-
- 20 Oct, 2006 1 commit
-
-
aliceli1 authored
Reviewed by Maciej. This is the initial foundation for the EditingController class and everything else it needs to work. The idea is that the Frame has an EditingController object that it calls to handle editing commands, the most simple examples being copy/paste. This controller will handle these editing commands in WebCore, and only hand off to WebKit to call editing delegates (to the let the app intercept editing actions if it wants to). Thus we need a platform-specific client to which the EditingController hands off the delegate calls, WebCoreEditingControllerClient. On the WebCore side this is an abstract base class, and on the WebKit(Mac) side this is an ObjC++ subclass, WebEditingControllerClient. How does the EditingController get a handle to its platform-specific client? In WebKit, the creator of a platform-specific Frame creates the client (which is ref-counted) and passes it down the chain of constructors until it gets back to the EditingController, which then refs it in its constructor and derefs in its destructor. No Layout tests needed. * WebCore.xcodeproj/project.pbxproj: Added files and made DomRangeInternal.h and EditingClient.h private headers, necessary for WebKit to compile * bridge/EditorClient.h: Added. (WebCore::EditorClient::~EditorClient): * bridge/mac/FrameMac.h: Added an EditingClient to the constructor, to pass down to Frame constructor * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac): Passed client down to Frame constructor * bridge/mac/WebCoreFrameBridge.h: Added an EditingClient to the constructor, to pass down to FrameMac constructor * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]): (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]): Passed client down to FrameMac constructor * editing/Editor.cpp: Added. Mostly stuf implementations of the following functions, except for a couple. These are all needed by cut, copy, paste, delete. (WebCore::generalPasteboard): (WebCore::Editor::canCopy): (WebCore::Editor::canCut): (WebCore::Editor::canDelete): (WebCore::Editor::canDeleteRange): (WebCore::Editor::canPaste): (WebCore::Editor::canSmartCopyOrDelete): (WebCore::Editor::deleteSelection): (WebCore::Editor::deleteSelectionWithSmartDelete): (WebCore::Editor::isSelectionRichlyEditable): (WebCore::Editor::pasteAsPlainTextWithPasteboard): (WebCore::Editor::pasteWithPasteboard): (WebCore::Editor::selectedRange): (WebCore::Editor::shouldDeleteRange): (WebCore::Editor::tryDHTMLCopy): (WebCore::Editor::tryDHTMLCut): (WebCore::Editor::tryDHTMLPaste): (WebCore::Editor::writeSelectionToPasteboard): (WebCore::Editor::Editor): (WebCore::Editor::~Editor): (WebCore::Editor::cut): (WebCore::Editor::copy): (WebCore::Editor::paste): (WebCore::Editor::performDelete): * editing/Editor.h: Added. * page/Frame.h: Added an EditingClient to the constructor, to pass down to Editor constructor * page/Frame.cpp: (WebCore::Frame::Frame): Passed down to Editor constructor (WebCore::Frame::editor): Accessfor for Editor stored in FramePrivate * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Added an Editor object to the FramePrivate data * platform/Sound.h: Added. Made a platform-independent accessor to a beep function * platform/mac/SoundMac.mm: Added. (WebCore::systemBeep): calls mac system beep WebKit: Reviewed by Maciej. Adding knowledge of EditorClient to WebKit * WebCoreSupport/WebEditorClient.h: Added. * WebCoreSupport/WebEditorClient.mm: Added. (WebEditorClient::WebEditorClient): (WebEditorClient::~WebEditorClient): (WebEditorClient::shouldDeleteRange): Implementation of mac EditorClient * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge initMainFrameWithPage:frameName:view:]): (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]): create an editor client to pass down the chain of constructors * WebKit.xcodeproj/project.pbxproj: Added related EditorClient files * WebKitPrefix.h: Added tiger build flag in order to make certain private headers from webcore compile successfully git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17179 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 09 Jul, 2006 1 commit
-
-
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
-
- 19 Mar, 2006 1 commit
-
-
darin authored
* <lots of files>: Renamed XXXImpl to XXX, and a number of other renames. See WebKitTools/Scripts/do-webcore-rename version 13392 for details. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13393 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 23 Feb, 2006 1 commit
-
-
darin authored
- moved QMouseEvent, QKeyEvent, QWheelEvent, and "Foundation extras" from kwq to platform directory - moved history function from kwq to bridge directory - eliminated QEvent, MousePressEvent, MouseDoubleClickEvent, MouseMoveEvent, MoveReleaseEvent, and DrawContents classes - merged NodeImpl::MouseEvent and the MouseEvent from khtml_events.h into a single class in the page directory - broke khtmllayout.h out into a file for the Length structure in the css directory and a file for the GapRects structure in the rendering directory - redid the Length structure to work more portably by not relying on bitfield layout and improve the names to no longer explicitly mention "width" - reduced use of QGuardedPtr and other uses of the QObject "destroyed" signal * ForwardingHeaders/kparts: Removed. * ForwardingHeaders/qevent.h: Removed. * khtml/khtml_events.cpp: Removed. * khtml/khtml_events.h: Removed. * khtml/misc/khtmllayout.h: Removed. * kwq/KWQEvent.h: Removed. * kwq/KWQEvent.mm: Removed. * kwq/KWQFoundationExtras.h: Removed. * kwq/KWQKHistoryProvider.mm: Removed. * kwq/KWQKPartsHistoryProvider.h: Removed. * bridge/History.h: Added. * bridge/mac/HistoryMac.mm: Added. * css/Length.h: Added. * page/MouseEventWithHitTestResults.h: Added. * platform/KeyEvent.h: Added. * platform/MouseEvent.h: Added. * platform/WheelEvent.h: Added. * platform/mac/FoundationExtras.h: Added. * platform/mac/KeyEventMac.mm: Added. * platform/mac/MouseEventMac.mm: Added. * platform/mac/WheelEventMac.mm: Added. * rendering/GapRects.h: Added. * WebCore.xcodeproj/project.pbxproj: Updated for above changes. * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for above changes. * bridge/mac/MacFrame.h: Removed unused parameters from urlSelected functions. Replaced MouseEvent, MousePressEvent, MouseMoveEvent, and MouseReleaseEvent with MouseEventWithHitTestResults. * bridge/mac/MacFrame.mm: (WebCore::MacFrame::urlSelected): Removed unused parameters. (WebCore::MacFrame::wheelEvent): Changed to use WheelEvent. (WebCore::MacFrame::keyEvent): Changed to use KeyEvent. (WebCore::MacFrame::khtmlMousePressEvent): Changed parameter type. (WebCore::MacFrame::khtmlMouseMoveEvent): Ditto. (WebCore::MacFrame::khtmlMouseReleaseEvent): Ditto. (WebCore::MacFrame::passSubframeEventToSubframe): Ditto. (WebCore::MacFrame::mouseDown): Changed to use MouseEvent. (WebCore::MacFrame::mouseDragged): Ditto. (WebCore::MacFrame::mouseUp): Ditto. (WebCore::MacFrame::mouseMoved): Ditto. (WebCore::MacFrame::sendContextMenuEvent): Ditto. * css/csshelper.h: Removed a bunch of unused declarations. * dom/DocumentImpl.h: * dom/DocumentImpl.cpp: (WebCore::DocumentImpl::prepareMouseEvent): Changed to take a MouseEvent and return a MouseEventWithHitTestResults. (WebCore::DocumentImpl::defaultEventHandler): Changed to use KeyEvent. * dom/NodeImpl.h: Removed NodeImpl::MouseEvent and NodeImpl::MouseEventType. * dom/NodeImpl.cpp: (WebCore::NodeImpl::dispatchMouseEvent): Changed to always get the type and detail values from the caller, never from the event. Changed to use MouseEvent. (WebCore::NodeImpl::dispatchKeyEvent): Changed to use KeyEvent. (WebCore::NodeImpl::dispatchWheelEvent): Changed to use WheelEvent. * dom/dom2_eventsimpl.h: * dom/dom2_eventsimpl.cpp: (WebCore::KeyboardEventImpl::KeyboardEventImpl): Changed to use KeyEvent. (WebCore::KeyboardEventImpl::charCode): Ditto. * dom/dom_elementimpl.h: Removed unused mouseEventHandler function. * khtml/ecma/domparser.h: Use RefPtr instead of QGuardedPtr to hold the reference to the document. * khtml/ecma/kjs_proxy.h: (WebCore::KJSProxyImpl::haveInterpreter): Added. For use in the Frame destructor so we can get an existing KJS::Window object without creating a new interpreter and window object. * khtml/ecma/kjs_window.h: Merged WindowQObject into Window. Changed all the guarded pointers to Frame to use plain old pointers that are cleared by the Frame explicitly (by the function disconnectFrame). Made the pointers to all the sub-objects of KJS::Window be mutable so we don't have to const_cast in the functions to get (and lazily create) them. * khtml/ecma/kjs_window.cpp: (KJS::DOMWindowTimer::DOMWindowTimer): Use Window* instead of WindowQObject*. (KJS::History::disconnectFrame): Added. Clears m_frame. (KJS::FrameArray::disconnectFrame): Added. Clears m_frame. (KJS::Window::Window): Removed code to create a WindowQObject. (KJS::Window::~Window): Removed code to delete a WindowQObject. (KJS::Window::location): Remove now-unneeded const_cast. (KJS::Window::selection): Ditto. (KJS::Window::locationbar): Ditto. (KJS::Window::menubar): Ditto. (KJS::Window::personalbar): Ditto. (KJS::Window::statusbar): Ditto. (KJS::Window::toolbar): Ditto. (KJS::Window::scrollbars): Ditto. (KJS::Window::getValueProperty): Update since m_frame is now a raw pointer. (KJS::Window::getOwnPropertySlot): Ditto. (KJS::Window::toBoolean): Ditto. (KJS::Window::scheduleClose): Remove assert that WindowQObject* is not null. (KJS::Window::isSafeScript): Update since m_frame is now a raw pointer. (KJS::Window::clear): Remove code to delete a WindowQObject. Added a call to clearAllTimeouts instead. (KJS::Window::clearAllTimeouts): Added. Does equivalent of the WindowQObject destructor. (KJS::Window::installTimeout): Moved to Window from WindowQObject. (KJS::Window::pauseTimeouts): Ditto. (KJS::Window::resumeTimeouts): Ditto. (KJS::Window::clearTimeout): Ditto. (KJS::Window::timerFired): Ditto. (KJS::Window::disconnectFrame): Added. Sets all the frame pointers to 0. (KJS::FrameArray::getOwnPropertySlot): Update since m_frame is now a raw pointer. (KJS::Location::getOwnPropertySlot): Ditto. (KJS::Location::put): Ditto. (KJS::Selection::getOwnPropertySlot): Ditto. (KJS::BarInfo::getOwnPropertySlot): Ditto. * khtml/html/html_baseimpl.h: Forward-declare Length instead of including khtmllayout.h. * khtml/html/html_imageimpl.h: Ditto. * khtml/html/html_inlineimpl.cpp: (WebCore::HTMLAnchorElementImpl::defaultEventHandler): Changed to use KeyEvent and removed the code to extract the button and state from the DOM even to pass to urlSelected. * ksvg2/svg/SVGAElementImpl.cpp: (SVGAElementImpl::defaultEventHandler): Ditto. * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::timerFired): Change to use a RefPtr instead of a QGuardedPtr. * khtml/misc/helper.h: * khtml/misc/helper.cpp: Removed printpainter and setPrintPainter. * ksvg2/svg/SVGDocumentImpl.h: * ksvg2/svg/SVGDocumentImpl.cpp: (WebCore::SVGDocumentImpl::dispatchKeyEvent): Change to use KeyEvent. * kwq/KWQComboBox.mm: (-[KWQPopUpButton becomeFirstResponder]): (-[KWQPopUpButton resignFirstResponder]): * kwq/KWQFileButton.mm: (KWQFileButton::focusChanged): * kwq/KWQListBox.mm: (-[KWQTableView becomeFirstResponder]): (-[KWQTableView resignFirstResponder]): * kwq/KWQSlider.mm: (-[KWQSlider becomeFirstResponder]): (-[KWQSlider resignFirstResponder]): * kwq/KWQTextArea.mm: (-[KWQTextAreaTextView becomeFirstResponder]): (-[KWQTextAreaTextView resignFirstResponder]): * kwq/KWQTextField.mm: (-[KWQTextFieldController setHasFocus:]): Updated to use new eventFilterFocusIn/Out instead of the general purpose eventFilter function. This allows us to remove QEvent and the focus events. * kwq/KWQNamespace.h: Removed ButtonState. * kwq/KWQObject.h: * kwq/KWQObject.cpp: Replaced eventFilter function with eventFilterFocusIn and eventFilterFocusOut, allowing us to remove QEvent. Removed event function. * kwq/KWQSlot.cpp: (KWQSlot::KWQSlot): Removed the parentDestroyed slot. (KWQSlot::call): Ditto. * page/Frame.h: * page/Frame.cpp: (WebCore::UserStyleSheetLoader::UserStyleSheetLoader): Renamed from PartStyleSheetLoader. Removed a lot of unneeded null checks. Use a raw Frame pointer instead of a QGuardedPtr, and count on the Frame to delete us when it's being deleted. (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader): No longer a virtual function. This is not a polymorphic class. (WebCore::UserStyleSheetLoader::setStyleSheet): Remove code to delete ourselves -- that's now the frame's responsibility. (WebCore::Frame::~Frame): Call disconnectFrame on the KJS::Window and delete m_userStyleSheetLoader. (WebCore::Frame::changeLocation): Update since urlSelected no longer takes button and state parameters. (WebCore::Frame::setUserStyleSheet): Delete existing loader to stop a load in progress before starting a new load. Store reference to loader. (WebCore::Frame::urlSelected): Remove button and state parameters and unused local variable hasTarget. (WebCore::Frame::selectClosestWordFromMouseEvent): Change from QMouseEvent to MouseEvent. (WebCore::Frame::handleMousePressEventDoubleClick): Change from MousePressEvent to MouseEventWithHitTestResults. (WebCore::Frame::handleMousePressEventTripleClick): Ditto. (WebCore::Frame::handleMousePressEventSingleClick): Ditto. (WebCore::Frame::khtmlMousePressEvent): Ditto. (WebCore::Frame::handleMouseMoveEventSelection): Change from MouseMoveEvent to MouseEventWithHitTestResults. (WebCore::Frame::khtmlMouseMoveEvent): Ditto. (WebCore::Frame::khtmlMouseReleaseEvent): Change from MouseReleaseEvent to MouseEventWithHitTestResults. (WebCore::Frame::khtmlMouseDoubleClickEvent): Change from MouseReleaseDoubleClickEvent to MouseEventWithHitTestResults. (WebCore::Frame::passWidgetMouseDownEventToWidget): Change from NodeImpl::MouseEvent to MouseEventWithHitTestResults. * page/FramePrivate.h: Added m_userStyleSheetLoader. * page/FrameView.h: * page/FrameView.cpp: (WebCore::FrameView::viewportMousePressEvent): Change from QMouseEvent to MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults. (WebCore::FrameView::viewportMouseDoubleClickEvent): Ditto. (WebCore::selectCursor): Ditto. (WebCore::FrameView::viewportMouseMoveEvent): Ditto. (WebCore::FrameView::viewportMouseReleaseEvent): Ditto. (WebCore::FrameView::keyPressEvent): Change from QKeyEvent to KeyEvent. (WebCore::FrameView::dispatchMouseEvent): Change from QMouseEvent to MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults. (WebCore::FrameView::viewportWheelEvent): Change from QWheelEvent to WheelEvent. (WebCore::FrameView::hoverTimerFired): Update for change to prepareMouseEvent parameters. * platform/Widget.h: * platform/Widget.cpp: Removed event function. * rendering/render_form.h: Removed LineEditWidget, ComboBoxWidget, TextAreaWidget. * rendering/render_form.cpp: (WebCore::RenderFormElement::slotClicked): Changed from QMouseEvent to MouseEvent. (WebCore::RenderFormElement::addIntrinsicMarginsIfAllowed): Updated for changes to the Length class. (WebCore::RenderSelect::setWidgetWritingDirection): Updated for removal of ComboBoxWidget. (WebCore::RenderSelect::slotSelected): Ditto. (WebCore::RenderSelect::createComboBox): Ditto. * rendering/render_replaced.h: * rendering/render_replaced.cpp: (WebCore::RenderWidget::destroy): Updated since removeEventFilter no longer takes a parameter. (WebCore::RenderWidget::setQWidget): Ditto. (WebCore::RenderWidget::eventFilterFocusIn): Added. Replaces eventFilter. (WebCore::RenderWidget::eventFilterFocusOut): Ditto. * css/css_computedstyle.cpp: (WebCore::valueForLength): (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue): * css/cssstyleselector.cpp: (WebCore::checkPseudoState): (WebCore::CSSStyleSelector::applyProperty): (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize): * khtml/html/html_imageimpl.cpp: (WebCore::HTMLAreaElementImpl::getRegion): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::MarginInfo::MarginInfo): (WebCore::RenderBlock::isSelfCollapsingBlock): (WebCore::RenderBlock::layoutBlock): (WebCore::RenderBlock::determineHorizontalPosition): (WebCore::RenderBlock::leftRelOffset): (WebCore::RenderBlock::rightRelOffset): (WebCore::RenderBlock::calcMinMaxWidth): (WebCore::getBPMWidth): (WebCore::RenderBlock::calcInlineMinMaxWidth): (WebCore::RenderBlock::calcBlockMinMaxWidth): * rendering/RenderTable.cpp: (WebCore::RenderTable::calcWidth): (WebCore::RenderTable::layout): * rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::calcMinMaxWidth): * rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::addChild): (WebCore::RenderTableSection::addCell): (WebCore::RenderTableSection::calcRowHeight): (WebCore::RenderTableSection::layoutRows): * rendering/RenderText.h: (khtml::RenderText::marginLeft): (khtml::RenderText::marginRight): * rendering/bidi.cpp: (khtml::getBPMWidth): * rendering/render_applet.cpp: (WebCore::RenderApplet::createWidgetIfNecessary): * rendering/render_box.cpp: (WebCore::RenderBox::paintBackgroundExtended): (WebCore::RenderBox::getClipRect): (WebCore::RenderBox::relativePositionOffset): (WebCore::RenderBox::calcWidth): (WebCore::RenderBox::calcWidthUsing): (WebCore::RenderBox::sizesToIntrinsicWidth): (WebCore::RenderBox::calcHorizontalMargins): (WebCore::RenderBox::calcHeight): (WebCore::RenderBox::calcHeightUsing): (WebCore::RenderBox::calcPercentageHeight): (WebCore::RenderBox::calcReplacedWidth): (WebCore::RenderBox::calcReplacedWidthUsing): (WebCore::RenderBox::calcReplacedHeight): (WebCore::RenderBox::calcReplacedHeightUsing): (WebCore::RenderBox::availableHeightUsing): (WebCore::RenderBox::calcVerticalMargins): (WebCore::RenderBox::calcAbsoluteHorizontal): (WebCore::RenderBox::calcAbsoluteHorizontalValues): (WebCore::RenderBox::calcAbsoluteVertical): (WebCore::RenderBox::calcAbsoluteVerticalValues): * rendering/render_br.cpp: (WebCore::RenderBR::lineHeight): * rendering/render_flexbox.cpp: (khtml::RenderFlexibleBox::calcHorizontalMinMaxWidth): (khtml::RenderFlexibleBox::calcVerticalMinMaxWidth): (khtml::RenderFlexibleBox::calcMinMaxWidth): (khtml::RenderFlexibleBox::allowedChildFlex): * rendering/render_flow.cpp: (WebCore::RenderFlow::lineHeight): * rendering/render_frames.cpp: (WebCore::RenderFrameSet::layout): * rendering/render_image.cpp: (WebCore::RenderImage::isWidthSpecified): (WebCore::RenderImage::isHeightSpecified): * rendering/render_layer.cpp: (WebCore::Marquee::direction): (WebCore::Marquee::start): (WebCore::Marquee::updateMarqueeStyle): (WebCore::Marquee::timerFired): * rendering/render_line.cpp: (WebCore::InlineFlowBox::marginLeft): (WebCore::InlineFlowBox::marginRight): * rendering/render_object.cpp: (WebCore::RenderObject::mustRepaintBackgroundOrBorder): (WebCore::RenderObject::paintBorderImage): (WebCore::RenderObject::paddingTop): (WebCore::RenderObject::paddingBottom): (WebCore::RenderObject::paddingLeft): (WebCore::RenderObject::paddingRight): (WebCore::RenderObject::getVerticalPosition): (WebCore::RenderObject::lineHeight): (WebCore::RenderObject::addDashboardRegions): * rendering/render_style.h: * rendering/render_theme_mac.mm: (WebCore::RenderThemeMac::addIntrinsicMargins): * rendering/table_layout.cpp: (WebCore::FixedTableLayout::calcWidthArray): (WebCore::FixedTableLayout::calcMinMaxWidth): (WebCore::FixedTableLayout::layout): (WebCore::AutoTableLayout::recalcColumn): (WebCore::AutoTableLayout::fullRecalc): (WebCore::AutoTableLayout::calcMinMaxWidth): (WebCore::AutoTableLayout::calcEffectiveWidth): (WebCore::AutoTableLayout::layout): (WebCore::AutoTableLayout::calcPercentages): Updated for changes to the Length class. Also removed a check of the printpainter global, never used in WebCore. * bindings/objc/DOM.mm: * bindings/objc/DOMCSS.mm: * bindings/objc/DOMHTML.mm: * bridge/mac/WebCoreFrameBridge.mm: * css/csshelper.cpp: * editing/SelectionController.cpp: * khtml/ecma/kjs_html.h: * kwq/KWQAccObject.mm: * kwq/KWQAccObjectCache.mm: * kwq/KWQClipboard.mm: * kwq/KWQFont.mm: * kwq/KWQFontMetrics.mm: * kwq/KWQKJobClasses.mm: * kwq/KWQKURL.mm: * kwq/KWQLoader.mm: * kwq/KWQPageState.mm: * kwq/KWQPainter.mm: * kwq/WebCoreSettings.mm: * platform/StringImpl.cpp: * platform/mac/CursorMac.mm: * platform/mac/WidgetMac.mm: * rendering/RenderBlock.h: * rendering/render_canvas.cpp: * rendering/render_line.h: * rendering/render_style.cpp: * rendering/table_layout.h: Updated includes. * bindings/js/JSDOMCore.cpp: Touched, because I got strange failures if this didn't rebuild. * bindings/js/JSDOMEvents.cpp: Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 22 Feb, 2006 1 commit
-
-
eseidel authored
Reviewed by darin. Adding stub FrameWin class to expose link errors. * WebCore.vcproj/WebCore/WebCore.vcproj: * bridge/win/FrameWin.cpp: Added. * bridge/win/FrameWin.h: Added. (WebCore::Win): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 14 Feb, 2006 1 commit
-
-
darin authored
- moved editing sources from khtml/editing to editing, and renamed files with single classes * WebCore.xcodeproj/project.pbxproj: Added new, removed old. * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto. * bridge/mac/MacFrame.mm: * bridge/mac/WebCoreFrameBridge.mm: * dom/DocumentImpl.cpp: * dom/dom2_rangeimpl.cpp: * dom/dom_position.cpp: * khtml/khtml_events.cpp: * kwq/KWQAccObject.mm: * kwq/KWQAccObjectCache.h: * kwq/KWQEditCommand.mm: * page/Frame.cpp: * page/FramePrivate.h: * rendering/RenderBlock.cpp: * rendering/RenderContainer.cpp: * rendering/RenderText.cpp: * rendering/render_br.cpp: * rendering/render_inline.cpp: * rendering/render_object.cpp: * rendering/render_replaced.cpp: Fixed up includes. * editing: Added. * editing/AppendNodeCommand.cpp: Added. * editing/AppendNodeCommand.h: Added. * editing/ApplyStyleCommand.cpp: Added. * editing/ApplyStyleCommand.h: Added. * editing/BreakBlockquoteCommand.cpp: Added. * editing/BreakBlockquoteCommand.h: Added. * editing/CompositeEditCommand.cpp: Added. * editing/CompositeEditCommand.h: Added. * editing/DeleteFromTextNodeCommand.cpp: Added. * editing/DeleteFromTextNodeCommand.h: Added. * editing/DeleteSelectionCommand.cpp: Added. * editing/DeleteSelectionCommand.h: Added. * editing/EditCommand.cpp: Added. * editing/EditCommand.h: Added. * editing/InsertIntoTextNodeCommand.cpp: Added. * editing/InsertIntoTextNodeCommand.h: Added. * editing/InsertLineBreakCommand.cpp: Added. * editing/InsertLineBreakCommand.h: Added. * editing/InsertNodeBeforeCommand.cpp: Added. * editing/InsertNodeBeforeCommand.h: Added. * editing/InsertParagraphSeparatorCommand.cpp: Added. * editing/InsertParagraphSeparatorCommand.h: Added. * editing/InsertTextCommand.cpp: Added. * editing/InsertTextCommand.h: Added. * editing/JoinTextNodesCommand.cpp: Added. * editing/JoinTextNodesCommand.h: Added. * editing/MergeIdenticalElementsCommand.cpp: Added. * editing/MergeIdenticalElementsCommand.h: Added. * editing/MoveSelectionCommand.cpp: Added. * editing/MoveSelectionCommand.h: Added. * editing/RebalanceWhitespaceCommand.cpp: Added. * editing/RebalanceWhitespaceCommand.h: Added. * editing/RemoveCSSPropertyCommand.cpp: Added. * editing/RemoveCSSPropertyCommand.h: Added. * editing/RemoveNodeAttributeCommand.cpp: Added. * editing/RemoveNodeAttributeCommand.h: Added. * editing/RemoveNodeCommand.cpp: Added. * editing/RemoveNodeCommand.h: Added. * editing/RemoveNodePreservingChildrenCommand.cpp: Added. * editing/RemoveNodePreservingChildrenCommand.h: Added. * editing/ReplaceSelectionCommand.cpp: Added. * editing/ReplaceSelectionCommand.h: Added. * editing/Selection.cpp: * editing/SelectionController.cpp: * editing/SetNodeAttributeCommand.cpp: Added. * editing/SetNodeAttributeCommand.h: Added. * editing/SplitElementCommand.cpp: Added. * editing/SplitElementCommand.h: Added. * editing/SplitTextNodeCommand.cpp: Added. * editing/SplitTextNodeCommand.h: Added. * editing/SplitTextNodeContainingElementCommand.cpp: Added. * editing/SplitTextNodeContainingElementCommand.h: Added. * editing/TypingCommand.cpp: Added. * editing/TypingCommand.h: Added. * editing/VisiblePosition.cpp: Added. * editing/VisiblePosition.h: Added. * editing/VisibleRange.cpp: Added. * editing/VisibleRange.h: Added. * editing/WrapContentsInDummySpanCommand.cpp: Added. * editing/WrapContentsInDummySpanCommand.h: Added. * editing/append_node_command.cpp: Removed. * editing/append_node_command.h: Removed. * editing/apply_style_command.cpp: Removed. * editing/apply_style_command.h: Removed. * editing/break_blockquote_command.cpp: Removed. * editing/break_blockquote_command.h: Removed. * editing/composite_edit_command.cpp: Removed. * editing/composite_edit_command.h: Removed. * editing/delete_from_text_node_command.cpp: Removed. * editing/delete_from_text_node_command.h: Removed. * editing/delete_selection_command.cpp: Removed. * editing/delete_selection_command.h: Removed. * editing/edit_command.cpp: Removed. * editing/edit_command.h: Removed. * editing/htmlediting.cpp: * editing/insert_into_text_node_command.cpp: Removed. * editing/insert_into_text_node_command.h: Removed. * editing/insert_line_break_command.cpp: Removed. * editing/insert_line_break_command.h: Removed. * editing/insert_node_before_command.cpp: Removed. * editing/insert_node_before_command.h: Removed. * editing/insert_paragraph_separator_command.cpp: Removed. * editing/insert_paragraph_separator_command.h: Removed. * editing/insert_text_command.cpp: Removed. * editing/insert_text_command.h: Removed. * editing/join_text_nodes_command.cpp: Removed. * editing/join_text_nodes_command.h: Removed. * editing/jsediting.cpp: * editing/markup.cpp: * editing/merge_identical_elements_command.cpp: Removed. * editing/merge_identical_elements_command.h: Removed. * editing/move_selection_command.cpp: Removed. * editing/move_selection_command.h: Removed. * editing/rebalance_whitespace_command.cpp: Removed. * editing/rebalance_whitespace_command.h: Removed. * editing/remove_css_property_command.cpp: Removed. * editing/remove_css_property_command.h: Removed. * editing/remove_node_attribute_command.cpp: Removed. * editing/remove_node_attribute_command.h: Removed. * editing/remove_node_command.cpp: Removed. * editing/remove_node_command.h: Removed. * editing/remove_node_preserving_children_command.cpp: Removed. * editing/remove_node_preserving_children_command.h: Removed. * editing/replace_selection_command.cpp: Removed. * editing/replace_selection_command.h: Removed. * editing/set_node_attribute_command.cpp: Removed. * editing/set_node_attribute_command.h: Removed. * editing/split_element_command.cpp: Removed. * editing/split_element_command.h: Removed. * editing/split_text_node_command.cpp: Removed. * editing/split_text_node_command.h: Removed. * editing/split_text_node_containing_element.cpp: Removed. * editing/split_text_node_containing_element_command.h: Removed. * editing/typing_command.cpp: Removed. * editing/typing_command.h: Removed. * editing/visible_position.cpp: Removed. * editing/visible_position.h: Removed. * editing/visible_range.cpp: Removed. * editing/visible_range.h: Removed. * editing/visible_units.cpp: * editing/wrap_contents_in_dummy_span_command.cpp: Removed. * editing/wrap_contents_in_dummy_span_command.h: Removed. * khtml/editing: Removed. * khtml/editing/Selection.cpp: Removed. * khtml/editing/Selection.h: Removed. * khtml/editing/SelectionController.cpp: Removed. * khtml/editing/SelectionController.h: Removed. * khtml/editing/append_node_command.cpp: Removed. * khtml/editing/append_node_command.h: Removed. * khtml/editing/apply_style_command.cpp: Removed. * khtml/editing/apply_style_command.h: Removed. * khtml/editing/break_blockquote_command.cpp: Removed. * khtml/editing/break_blockquote_command.h: Removed. * khtml/editing/composite_edit_command.cpp: Removed. * khtml/editing/composite_edit_command.h: Removed. * khtml/editing/delete_from_text_node_command.cpp: Removed. * khtml/editing/delete_from_text_node_command.h: Removed. * khtml/editing/delete_selection_command.cpp: Removed. * khtml/editing/delete_selection_command.h: Removed. * khtml/editing/edit_actions.h: Removed. * khtml/editing/edit_command.cpp: Removed. * khtml/editing/edit_command.h: Removed. * khtml/editing/html_interchange.cpp: Removed. * khtml/editing/html_interchange.h: Removed. * khtml/editing/htmlediting.cpp: Removed. * khtml/editing/htmlediting.h: Removed. * khtml/editing/insert_into_text_node_command.cpp: Removed. * khtml/editing/insert_into_text_node_command.h: Removed. * khtml/editing/insert_line_break_command.cpp: Removed. * khtml/editing/insert_line_break_command.h: Removed. * khtml/editing/insert_node_before_command.cpp: Removed. * khtml/editing/insert_node_before_command.h: Removed. * khtml/editing/insert_paragraph_separator_command.cpp: Removed. * khtml/editing/insert_paragraph_separator_command.h: Removed. * khtml/editing/insert_text_command.cpp: Removed. * khtml/editing/insert_text_command.h: Removed. * khtml/editing/join_text_nodes_command.cpp: Removed. * khtml/editing/join_text_nodes_command.h: Removed. * khtml/editing/jsediting.cpp: Removed. * khtml/editing/jsediting.h: Removed. * khtml/editing/markup.cpp: Removed. * khtml/editing/markup.h: Removed. * khtml/editing/merge_identical_elements_command.cpp: Removed. * khtml/editing/merge_identical_elements_command.h: Removed. * khtml/editing/move_selection_command.cpp: Removed. * khtml/editing/move_selection_command.h: Removed. * khtml/editing/rebalance_whitespace_command.cpp: Removed. * khtml/editing/rebalance_whitespace_command.h: Removed. * khtml/editing/remove_css_property_command.cpp: Removed. * khtml/editing/remove_css_property_command.h: Removed. * khtml/editing/remove_node_attribute_command.cpp: Removed. * khtml/editing/remove_node_attribute_command.h: Removed. * khtml/editing/remove_node_command.cpp: Removed. * khtml/editing/remove_node_command.h: Removed. * khtml/editing/remove_node_preserving_children_command.cpp: Removed. * khtml/editing/remove_node_preserving_children_command.h: Removed. * khtml/editing/replace_selection_command.cpp: Removed. * khtml/editing/replace_selection_command.h: Removed. * khtml/editing/set_node_attribute_command.cpp: Removed. * khtml/editing/set_node_attribute_command.h: Removed. * khtml/editing/split_element_command.cpp: Removed. * khtml/editing/split_element_command.h: Removed. * khtml/editing/split_text_node_command.cpp: Removed. * khtml/editing/split_text_node_command.h: Removed. * khtml/editing/split_text_node_containing_element.cpp: Removed. * khtml/editing/split_text_node_containing_element_command.h: Removed. * khtml/editing/text_affinity.h: Removed. * khtml/editing/text_granularity.h: Removed. * khtml/editing/typing_command.cpp: Removed. * khtml/editing/typing_command.h: Removed. * khtml/editing/visible_position.cpp: Removed. * khtml/editing/visible_position.h: Removed. * khtml/editing/visible_range.cpp: Removed. * khtml/editing/visible_range.h: Removed. * khtml/editing/visible_text.cpp: Removed. * khtml/editing/visible_text.h: Removed. * khtml/editing/visible_units.cpp: Removed. * khtml/editing/visible_units.h: Removed. * khtml/editing/wrap_contents_in_dummy_span_command.cpp: Removed. * khtml/editing/wrap_contents_in_dummy_span_command.h: Removed. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 03 Oct, 2005 1 commit
-
-
mjs authored
Reviewed by Darin. <rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc http://bugzilla.opendarwin.org/show_bug.cgi?id=5243 A number of optimizations to the new threadsafe malloc that make it actually as fast as dlmalloc (I measured wrong before) and as memory-efficient as the system malloc. - use fastMalloc for everything - it now gets applied to all new/delete allocations via a private inline operator new that is now included into every file via config.h. - tweaked some of the numeric parameters for size classes and amount of wasted memory allowed per allocation - this saves on memory use and consequently improves speed. - so long as the allocator is not being used on background threads, get the per-thread cache from a global variable instead of from pthread_getspecific, since the latter is slow. - inline more functions, and force the ones GCC refuses to inline with attribute(always_inline), nearly all of these have one call site so inlining them has to be a win. - use some tricks to calculate allocation size more efficiently and fewer times for small allocations, to avoid hitting the huge size table array. - avoid hitting the per-thread cache on code paths that don't need it. - implement inline assembly version of spinlock for PowerPC (was already done for x86) * bindings/NP_jsobject.cpp: * bindings/c/c_class.cpp: * bindings/c/c_instance.cpp: * bindings/c/c_runtime.cpp: * bindings/c/c_utility.cpp: * bindings/jni/jni_class.cpp: * bindings/jni/jni_instance.cpp: * bindings/jni/jni_jsobject.cpp: * bindings/jni/jni_objc.mm: * bindings/jni/jni_runtime.cpp: * bindings/jni/jni_utility.cpp: * bindings/npruntime.cpp: * bindings/objc/WebScriptObject.mm: * bindings/objc/objc_class.mm: * bindings/objc/objc_instance.mm: * bindings/objc/objc_runtime.mm: * bindings/objc/objc_utility.mm: * bindings/runtime.cpp: * bindings/runtime_array.cpp: * bindings/runtime_method.cpp: * bindings/runtime_object.cpp: * bindings/runtime_root.cpp: * bindings/testbindings.cpp: * bindings/testbindings.mm: * kjs/array_object.cpp: (ArrayInstanceImp::ArrayInstanceImp): (ArrayInstanceImp::~ArrayInstanceImp): (ArrayInstanceImp::resizeStorage): * kjs/bool_object.cpp: * kjs/collector.cpp: (KJS::Collector::registerThread): * kjs/config.h: * kjs/debugger.cpp: * kjs/error_object.cpp: * kjs/function.cpp: * kjs/function_object.cpp: * kjs/identifier.cpp: (KJS::Identifier::rehash): * kjs/internal.cpp: (KJS::Parser::saveNewNode): (KJS::clearNewNodes): * kjs/interpreter.cpp: * kjs/lexer.cpp: (Lexer::doneParsing): (Lexer::makeIdentifier): (Lexer::makeUString): * kjs/list.cpp: * kjs/math_object.cpp: * kjs/nodes.cpp: * kjs/nodes.h: * kjs/nodes2string.cpp: * kjs/number_object.cpp: (integer_part_noexp): (char_sequence): * kjs/object.cpp: * kjs/object_object.cpp: * kjs/property_map.cpp: * kjs/property_slot.cpp: * kjs/protected_values.cpp: (KJS::ProtectedValues::rehash): * kjs/reference.cpp: * kjs/reference_list.cpp: * kjs/regexp.cpp: * kjs/regexp_object.cpp: * kjs/scope_chain.cpp: * kjs/scope_chain.h: * kjs/string_object.cpp: * kjs/testkjs.cpp: * kjs/ustring.h: * kjs/value.cpp: * kxmlcore/Assertions.mm: * kxmlcore/FastMalloc.cpp: (KXMLCore::InitSizeClasses): (KXMLCore::DLL_IsEmpty): (KXMLCore::DLL_Prepend): (KXMLCore::TCMalloc_Central_FreeList::Insert): (KXMLCore::TCMalloc_Central_FreeList::Remove): (KXMLCore::TCMalloc_Central_FreeList::Populate): (KXMLCore::TCMalloc_ThreadCache::Allocate): (KXMLCore::TCMalloc_ThreadCache::FetchFromCentralCache): (KXMLCore::fastMallocRegisterThread): (KXMLCore::TCMalloc_ThreadCache::GetCache): (KXMLCore::TCMalloc_ThreadCache::GetCacheIfPresent): (KXMLCore::TCMalloc_ThreadCache::CreateCacheIfNecessary): (KXMLCore::do_malloc): (KXMLCore::do_free): (KXMLCore::realloc): * kxmlcore/FastMalloc.h: (operator new): (operator delete): (operator new[]): (operator delete[]): * kxmlcore/HashTable.cpp: * kxmlcore/TCSpinLock.h: (TCMalloc_SpinLock::Lock): (TCMalloc_SpinLock::Unlock): (TCMalloc_SlowLock): * kxmlcore/TCSystemAlloc.cpp: WebCore: Reviewed by Darin. <rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc http://bugzilla.opendarwin.org/show_bug.cgi?id=5243 - use fastMalloc for everything - it now gets applied to all new/delete allocations via a private inline operator new that is now included into every file via config.h * WebCore.xcodeproj/project.pbxproj: * WebCorePrefix.h: * khtml/css/css_base.cpp: * khtml/css/css_base.h: * khtml/css/css_computedstyle.cpp: * khtml/css/css_ruleimpl.cpp: * khtml/css/css_stylesheetimpl.cpp: * khtml/css/css_valueimpl.cpp: * khtml/css/css_valueimpl.h: * khtml/css/csshelper.cpp: * khtml/css/cssparser.cpp: (ValueList::ValueList): (ValueList::~ValueList): (ValueList::addValue): (CSSParser::CSSParser): (CSSParser::~CSSParser): (CSSParser::setupParser): (CSSParser::addProperty): * khtml/css/cssstyleselector.cpp: * khtml/css/cssstyleselector.h: * khtml/dom/dom2_events.cpp: * khtml/dom/dom2_traversal.cpp: * khtml/dom/dom_misc.cpp: * khtml/dom/dom_string.cpp: * khtml/ecma/domparser.cpp: * khtml/ecma/kjs_binding.cpp: * khtml/ecma/kjs_css.cpp: * khtml/ecma/kjs_dom.cpp: * khtml/ecma/kjs_events.cpp: * khtml/ecma/kjs_html.cpp: (KJS::KJS::Context2DFunction::callAsFunction): (KJS::Gradient::~Gradient): (KJS::Gradient::addColorStop): (KJS::Gradient::colorStops): * khtml/ecma/kjs_navigator.cpp: * khtml/ecma/kjs_proxy.cpp: * khtml/ecma/kjs_range.cpp: * khtml/ecma/kjs_traversal.cpp: * khtml/ecma/kjs_views.cpp: * khtml/ecma/kjs_window.cpp: * khtml/ecma/xmlhttprequest.cpp: * khtml/ecma/xmlserializer.cpp: * khtml/editing/SelectionController.cpp: * khtml/editing/append_node_command.cpp: * khtml/editing/apply_style_command.cpp: * khtml/editing/break_blockquote_command.cpp: * khtml/editing/composite_edit_command.cpp: * khtml/editing/delete_from_text_node_command.cpp: * khtml/editing/delete_selection_command.cpp: * khtml/editing/edit_command.cpp: * khtml/editing/html_interchange.cpp: * khtml/editing/htmlediting.cpp: * khtml/editing/insert_into_text_node_command.cpp: * khtml/editing/insert_line_break_command.cpp: * khtml/editing/insert_node_before_command.cpp: * khtml/editing/insert_paragraph_separator_command.cpp: * khtml/editing/insert_text_command.cpp: * khtml/editing/join_text_nodes_command.cpp: * khtml/editing/jsediting.cpp: * khtml/editing/markup.cpp: * khtml/editing/merge_identical_elements_command.cpp: * khtml/editing/move_selection_command.cpp: * khtml/editing/rebalance_whitespace_command.cpp: * khtml/editing/remove_css_property_command.cpp: * khtml/editing/remove_node_attribute_command.cpp: * khtml/editing/remove_node_command.cpp: * khtml/editing/remove_node_preserving_children_command.cpp: * khtml/editing/replace_selection_command.cpp: * khtml/editing/set_node_attribute_command.cpp: * khtml/editing/split_element_command.cpp: * khtml/editing/split_text_node_command.cpp: * khtml/editing/split_text_node_containing_element.cpp: * khtml/editing/typing_command.cpp: * khtml/editing/visible_position.cpp: * khtml/editing/visible_range.cpp: * khtml/editing/visible_text.cpp: (khtml::CircularSearchBuffer::~CircularSearchBuffer): (khtml::CircularSearchBuffer::CircularSearchBuffer): * khtml/editing/visible_units.cpp: * khtml/editing/wrap_contents_in_dummy_span_command.cpp: * khtml/html/html_baseimpl.cpp: * khtml/html/html_blockimpl.cpp: * khtml/html/html_canvasimpl.cpp: * khtml/html/html_documentimpl.cpp: * khtml/html/html_elementimpl.cpp: * khtml/html/html_formimpl.cpp: * khtml/html/html_headimpl.cpp: * khtml/html/html_imageimpl.cpp: * khtml/html/html_inlineimpl.cpp: * khtml/html/html_listimpl.cpp: * khtml/html/html_miscimpl.cpp: * khtml/html/html_objectimpl.cpp: * khtml/html/html_tableimpl.cpp: * khtml/html/htmlfactory.cpp: * khtml/html/htmlnames.cpp: * khtml/html/htmlparser.cpp: * khtml/html/htmltokenizer.cpp: (khtml::HTMLTokenizer::enlargeBuffer): (khtml::HTMLTokenizer::enlargeScriptBuffer): * khtml/khtml_events.cpp: * khtml/khtml_part.cpp: * khtml/khtmlview.cpp: * khtml/misc/arena.cpp: * khtml/misc/arena.h: * khtml/misc/decoder.cpp: * khtml/misc/formdata.cpp: * khtml/misc/helper.cpp: * khtml/misc/loader.cpp: * khtml/misc/stringit.cpp: * khtml/rendering/bidi.cpp: * khtml/rendering/break_lines.cpp: * khtml/rendering/font.cpp: * khtml/rendering/render_arena.cpp: * khtml/rendering/render_block.cpp: * khtml/rendering/render_box.cpp: * khtml/rendering/render_br.cpp: * khtml/rendering/render_canvas.cpp: * khtml/rendering/render_canvasimage.cpp: (RenderCanvasImage::~RenderCanvasImage): (RenderCanvasImage::createDrawingContext): * khtml/rendering/render_container.cpp: * khtml/rendering/render_flexbox.cpp: * khtml/rendering/render_flow.cpp: * khtml/rendering/render_form.cpp: * khtml/rendering/render_frames.cpp: * khtml/rendering/render_image.cpp: * khtml/rendering/render_inline.cpp: * khtml/rendering/render_layer.cpp: * khtml/rendering/render_line.cpp: * khtml/rendering/render_list.cpp: * khtml/rendering/render_object.cpp: * khtml/rendering/render_replaced.cpp: * khtml/rendering/render_style.cpp: * khtml/rendering/render_style.h: * khtml/rendering/render_table.cpp: * khtml/rendering/render_text.cpp: * khtml/rendering/render_theme.cpp: * khtml/rendering/render_theme_mac.mm: * khtml/rendering/table_layout.cpp: * khtml/xbl/xbl_binding.cpp: * khtml/xbl/xbl_binding_manager.cpp: * khtml/xbl/xbl_docimpl.cpp: * khtml/xbl/xbl_protobinding.cpp: * khtml/xbl/xbl_protohandler.cpp: * khtml/xbl/xbl_protoimplementation.cpp: * khtml/xbl/xbl_tokenizer.cpp: * khtml/xml/EventNames.cpp: * khtml/xml/dom2_eventsimpl.cpp: * khtml/xml/dom2_eventsimpl.h: * khtml/xml/dom2_rangeimpl.cpp: * khtml/xml/dom2_rangeimpl.h: * khtml/xml/dom2_traversalimpl.cpp: * khtml/xml/dom2_traversalimpl.h: * khtml/xml/dom2_viewsimpl.cpp: * khtml/xml/dom2_viewsimpl.h: * khtml/xml/dom_atomicstring.cpp: * khtml/xml/dom_docimpl.cpp: * khtml/xml/dom_docimpl.h: * khtml/xml/dom_elementimpl.cpp: * khtml/xml/dom_elementimpl.h: * khtml/xml/dom_nodeimpl.cpp: * khtml/xml/dom_nodeimpl.h: * khtml/xml/dom_position.cpp: * khtml/xml/dom_qname.cpp: * khtml/xml/dom_stringimpl.cpp: * khtml/xml/dom_stringimpl.h: * khtml/xml/dom_textimpl.cpp: * khtml/xml/dom_xmlimpl.cpp: * khtml/xml/xml_tokenizer.cpp: * khtml/xsl/xsl_stylesheetimpl.cpp: * khtml/xsl/xslt_processorimpl.cpp: * kwq/DOM-CSS.mm: * kwq/DOM.mm: * kwq/DOMEvents.mm: * kwq/DOMHTML.mm: * kwq/DOMInternal.mm: (DOMString::DOMString): * kwq/DOMUtility.mm: * kwq/DOMViews.mm: * kwq/KWQAccObject.mm: * kwq/KWQAccObjectCache.mm: * kwq/KWQApplication.mm: * kwq/KWQArrayImpl.h: * kwq/KWQArrayImpl.mm: * kwq/KWQBuffer.mm: * kwq/KWQButton.mm: * kwq/KWQCString.mm: * kwq/KWQCharsets.mm: * kwq/KWQClipboard.mm: * kwq/KWQCollection.mm: * kwq/KWQColor.mm: * kwq/KWQComboBox.mm: * kwq/KWQCursor.mm: * kwq/KWQDateTime.mm: * kwq/KWQDictImpl.mm: * kwq/KWQEditCommand.mm: * kwq/KWQEvent.mm: * kwq/KWQExceptions.mm: * kwq/KWQFile.mm: * kwq/KWQFileButton.mm: * kwq/KWQFont.mm: * kwq/KWQFontFamily.h: * kwq/KWQFontFamily.mm: * kwq/KWQFontMetrics.mm: * kwq/KWQFormData.mm: * kwq/KWQFrame.mm: * kwq/KWQGlobal.mm: * kwq/KWQGuardedPtr.mm: * kwq/KWQKCharsets.mm: * kwq/KWQKConfigBase.mm: * kwq/KWQKCookieJar.mm: * kwq/KWQKCursor.mm: * kwq/KWQKGlobal.mm: * kwq/KWQKGlobalSettings.mm: * kwq/KWQKHTMLFactory.mm: * kwq/KWQKHTMLPart.cpp: * kwq/KWQKHTMLPart.mm: * kwq/KWQKHTMLPartBrowserExtension.mm: * kwq/KWQKHTMLView.mm: * kwq/KWQKHistoryProvider.mm: * kwq/KWQKJavaAppletWidget.mm: * kwq/KWQKJob.mm: * kwq/KWQKJobClasses.mm: * kwq/KWQKLocale.mm: * kwq/KWQKPartsBrowserInterface.mm: * kwq/KWQKPartsEvent.mm: * kwq/KWQKPartsPart.mm: * kwq/KWQKSSLKeyGen.mm: * kwq/KWQKStandardDirs.mm: * kwq/KWQKStringHandler.mm: * kwq/KWQKURL.mm: (KURL::KURL): (KURL::decode_string): (KURL::parse): (KURL::encode_string): (encodeRelativeString): * kwq/KWQKWin.mm: * kwq/KWQKWinModule.mm: * kwq/KWQLabel.mm: * kwq/KWQLineEdit.mm: * kwq/KWQListBox.mm: * kwq/KWQListImpl.mm: * kwq/KWQLoader.mm: (KWQIsResponseURLEqualToURL): * kwq/KWQMapImpl.h: * kwq/KWQMapImpl.mm: * kwq/KWQMovie.mm: * kwq/KWQObject.mm: * kwq/KWQPageState.mm: * kwq/KWQPaintDeviceMetrics.mm: * kwq/KWQPainter.mm: * kwq/KWQPalette.mm: * kwq/KWQPen.mm: * kwq/KWQPixmap.mm: * kwq/KWQPoint.mm: * kwq/KWQPointArray.mm: * kwq/KWQPtrDictImpl.mm: * kwq/KWQPushButton.mm: * kwq/KWQRect.mm: * kwq/KWQRegExp.mm: * kwq/KWQRegion.mm: * kwq/KWQRenderTreeDebug.cpp: * kwq/KWQResourceLoader.mm: * kwq/KWQScrollBar.mm: * kwq/KWQScrollView.mm: * kwq/KWQSignal.mm: * kwq/KWQSignalStubs.mm: * kwq/KWQSize.mm: * kwq/KWQSlider.mm: * kwq/KWQSlot.mm: * kwq/KWQString.h: * kwq/KWQString.mm: (ALLOC_CHAR): (REALLOC_CHAR): (DELETE_CHAR): (ALLOC_QCHAR): (REALLOC_QCHAR): (DELETE_QCHAR): (_printQStringAllocationStatistics): (allocateHandle): (KWQStringData::operator new): (KWQStringData::operator delete): (freeHandle): * kwq/KWQStringList.mm: * kwq/KWQStyle.mm: * kwq/KWQTextArea.mm: * kwq/KWQTextCodec.mm: * kwq/KWQTextEdit.mm: * kwq/KWQTextField.mm: * kwq/KWQTextStream.mm: * kwq/KWQTextUtilities.mm: * kwq/KWQTimer.mm: * kwq/KWQValueListImpl.h: * kwq/KWQValueListImpl.mm: * kwq/KWQVariant.mm: * kwq/KWQVectorImpl.mm: (KWQVectorImpl::KWQVectorImpl): (KWQVectorImpl::~KWQVectorImpl): (KWQVectorImpl::clear): (KWQVectorImpl::resize): (KWQVectorImpl::assign): * kwq/KWQWMatrix.mm: * kwq/KWQWidget.mm: * kwq/KWQWindowWidget.mm: * kwq/WebCoreBridge.mm: * kwq/WebCoreCache.mm: * kwq/WebCoreEncodings.mm: * kwq/WebCoreJavaScript.mm: * kwq/WebCoreScriptDebugger.mm: * kwq/WebCoreSettings.mm: * kwq/WebCoreTextRendererFactory.mm: * kwq/can-convert.mm: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-