1. 13 Jun, 2009 1 commit
    • abarth@webkit.org's avatar
      2009-06-13 Ben Murdoch <benm@google.com> · ea665a21
      abarth@webkit.org authored
              Reviewed by David Kilzer.  Landed by Adam Barth.
      
              https://bugs.webkit.org/show_bug.cgi?id=26189
      
              This patch changes the way PageGroups create their localStorage
              objects. Rather than creating a local storage object for the page group
              when a page is added to the group, the local storage object is now
              created lazily when the local storage object is requested by the
              DOMWindow.
      
              * page/PageGroup.cpp:
              (WebCore::PageGroup::closeLocalStorage): Before attempting to close a local storage object for a page group, ensure one has been created.
              (WebCore::PageGroup::addPage): Do not automatically try to create a local storage object when a page is added to the group.
              (WebCore::PageGroup::localStorage): Create a local storage object if one does not exist and return it.
              * page/PageGroup.h: Add private hasLocalStorage method to PageGroup.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ea665a21
  2. 21 Nov, 2008 1 commit
  3. 06 May, 2008 1 commit
    • beidson@apple.com's avatar
      WebCore: · 18ed1cdf
      beidson@apple.com authored
      2008-05-06  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin Adler
      
              Preparation for upcoming work making LocalStorage persistent.
      
              When the application terminates, all pending local storage writes need to be
              sync'ed out to disk.
              This works n combination with platform specific code in WebKit that calls it.
      
              * WebCore.base.exp:
      
              * page/PageGroup.cpp:
              (WebCore::PageGroup::closeLocalStorage): Close all open LocalStorage objects
              * page/PageGroup.h:
      
              * storage/LocalStorage.cpp:
              (WebCore::LocalStorage::close): Placeholder for what will sync and terminate the
                local storage thread in the future.
              * storage/LocalStorage.h:
      
      WebKit/mac:
      
      2008-05-06  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin Adler
      
              Preparation for upcoming work making LocalStorage persistent.
      
              When the application terminates, all LocalStorage areas must be sync'ed out to disk first.
      
              * WebView/WebView.mm:
              (+[WebView _applicationWillTerminate]):  Close all LocalStorage areas before quitting.
      
      WebKit/win:
      
      2008-05-06  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin Adler
      
              Preparation for upcoming work making LocalStorage persistent.
      
              When the application terminates, all LocalStorage areas must be sync'ed out to disk first.
      
              * WebKitDLL.cpp:
              (shutDownWebKit): Close all LocalStorage areas before quitting.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      18ed1cdf
  4. 24 Apr, 2008 2 commits
    • beidson@apple.com's avatar
      2008-04-24 Brady Eidson <beidson@apple.com> · ab528fba
      beidson@apple.com authored
              Reviewed by Teh Mitzpettel
      
              Make it so PageGroups know what their own name is.
      
              * WebCore.base.exp:
      
              * page/Page.cpp:
              (WebCore::Page::setGroupName):
              (WebCore::Page::groupName):
              * page/Page.h:
      
              * page/PageGroup.cpp: Move the PageGroupMap into the PageGroup class.
              (WebCore::PageGroup::PageGroup): Added a c'tor that takes the group name as an argument instead of
                the initial Page.
              (WebCore::PageGroup::pageGroup): Handles creating and mapping names to groups
              * page/PageGroup.h:
              (WebCore::PageGroup::name):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32524 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ab528fba
    • kmccullough@apple.com's avatar
      JavaScriptCore: · d9e61e09
      kmccullough@apple.com authored
      2008-04-24  Kevin McCullough  <kmccullough@apple.com>
      
              Reviewed by Adam and Sam.
      
              -<rdar://problem/5770054> JavaScript profiler (10928)
              -Only profile the page group that starts profiling to avoid profiling
              tools that shouldn't be profiled unless explicitly requested to.
      
              * JavaScriptCore.exp: Export new signature.
              * kjs/JSGlobalObject.cpp: Add unique identifiers to the JSGlobalObject.
              (KJS::JSGlobalObject::init):
              * kjs/JSGlobalObject.h: Ditto.
              (KJS::JSGlobalObject::setPageGroupIdentifier):
              (KJS::JSGlobalObject::pageGroupIdentifier):
              * profiler/Profiler.cpp: Check the identifier of the page group of the
              lexical global exec state and only profile if it matches the given page
              group identifier.
              (KJS::Profiler::startProfiling):
              (KJS::Profiler::willExecute):
              (KJS::Profiler::didExecute):
              * profiler/Profiler.h: Ditto.
              (KJS::Profiler::Profiler):
      
      WebCore:
      
      2008-04-24  Kevin McCullough  <kmccullough@apple.com>
      
              Reviewed by Adam and Sam.
      
              -<rdar://problem/5770054> JavaScript profiler (10928)
              -Only profile the page group that starts profiling to avoid profiling
              tools that shouldn't be profiled unless explicitly requested to.
      
              * bindings/js/kjs_proxy.cpp: When a new global object is created set its
              page group identifier.
              (WebCore::KJSProxy::clear):
              (WebCore::KJSProxy::initScript):
              * page/Console.cpp: When calling console.profile set the identifier of
              the page group being profiled.
              (WebCore::Console::profile):
              * page/PageGroup.cpp: Implement unique identifiers.
              (WebCore::getUniqueIdentifier):
              (WebCore::PageGroup::PageGroup):
              * page/PageGroup.h: Ditto.
              (WebCore::PageGroup::identifier):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32495 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d9e61e09
  5. 18 Apr, 2008 3 commits
  6. 17 Apr, 2008 1 commit
    • beidson@apple.com's avatar
      2008-04-17 Brady Eidson <beidson@apple.com> · 653985c6
      beidson@apple.com authored
              Reviewed by the Mitzpettel
      
              Before things get much more intertwined, move away from a global LocalStorage model
              to a per-PageGroup LocalStorage model.
      
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::localStorage): Get it from the current PageGroup, not the global
                LocalStorage (which doesn't exist anymore).
      
              * page/Page.cpp:
              * page/PageGroup.cpp:
              (WebCore::PageGroup::localStorage): Create a LocalStorage object on demand.
              * page/PageGroup.h:
      
              * storage/LocalStorage.cpp:
              (WebCore::LocalStorage::LocalStorage): Hold a back pointer to the owning PageGroup.
              (WebCore::LocalStorage::storageArea):
              * storage/LocalStorage.h:
              (WebCore::LocalStorage::create):
      
              * storage/LocalStorageArea.cpp:
              (WebCore::LocalStorageArea::LocalStorageArea): Hold a back pointer to the owning LocalStorage.
              * storage/LocalStorageArea.h:
              (WebCore::LocalStorageArea::create):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32020 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      653985c6
  7. 10 Mar, 2008 1 commit
    • darin@apple.com's avatar
      Reviewed by Antti. · d69216d5
      darin@apple.com authored
              - fix <rdar://problem/3059610> VIP: links opened in new frame, window, or tab
                should be redrawn as visited immediately
              - fix <rdar://problem/4382809> Going "back" a page doesn't change the color of
                the visited URL at directory.umi
              - fix http://bugs.webkit.org/show_bug.cgi?id=4941
                Visited links should be marked as visited
              - fix http://bugs.webkit.org/show_bug.cgi?id=7960
                REGRESSION: Visited link color doesn't displayed after loading page from cache
      
              We now mark all links on a page as "changed" at the appropriate times.
      
              * WebCore.base.exp: Update since I made completeURL be a const member function.
      
              * css/CSSStyleSelector.cpp: Got rid of some unneeded globals that could be turned
              into locals. Also changed some static data members to file-scoped globals with
              internal linkage. Renamed the globals to get rid of the m_ prefix. Changed the
              prefix on m_styleNotYetAvailable to s_styleNotYetAvailable.
              (WebCore::CSSStyleSelector::CSSStyleSelector): Updated for name changes.
              (WebCore::parseUASheet): Tweak the comment.
              (WebCore::CSSStyleSelector::loadDefaultStyle): Updated for name changes and to
              use local variables instead of globals where possible.
              (WebCore::CSSStyleSelector::checkPseudoState): Made this a member function so
              it can store the link in a hash. Also changed it to have a return value instead
              of having it modify a global variable. Added code to put the hash into a set so
              we can tell later if this is one of the links that affects this page.
              (WebCore::CSSStyleSelector::canShareStyleWithElement): Updated for the change to
              checkPseudoState.
              (WebCore::CSSStyleSelector::matchUARules): Updated for name changes.
              (WebCore::CSSStyleSelector::styleForElement): Ditto.
              (WebCore::CSSStyleSelector::adjustRenderStyle): Ditto.
              (WebCore::CSSStyleSelector::pseudoStyleRulesForElement): Changed code to read
              the SVG style sheet to use a boolean global and put it right here in the function
              since this is the only code that needs to know about it.
              (WebCore::CSSStyleSelector::checkOneSelector): Updated for name changes.
              (WebCore::colorForCSSValue): Moved code inside the function that is not needed
              anywhere else.
              (WebCore::CSSStyleSelector::getColorFromPrimitiveValue): Updaed for the change
              to checkPseudoState.
              (WebCore::CSSStyleSelector::allVisitedStateChanged): Added. Calls setChanged on
              all links if there were any in the set.
              (WebCore::CSSStyleSelector::visitedStateChanged): Added. Calls setChanged on all
              links if the one that changed is in the set.
      
              * css/CSSStyleSelector.h: Removed unused StyleSelector class and State enum. Made
              CSSStyleSelector derive from Noncopyable. Made lots of member functions private that
              didn't need to be public, and removed others that could be made into non-member
              functions. Changed pseudoStyleRulesForElement to take a const String& instead of
              a StringImpl*. Added new allVisitedStateChanged and visitedStateChanged functions.
              Got rid of unneeded friend declarations.
      
              * dom/Document.cpp:
              (WebCore::Document::completeURL): Made const.
              (WebCore::findSlashDotDotSlash): Moved here from PageGroup.
              (WebCore::findSlashSlash): Ditto.
              (WebCore::findSlashDotSlash): Ditto.
              (WebCore::containsColonSlashSlash):
              (WebCore::cleanPath): Ditto.
              (WebCore::matchLetter): Ditto.
              (WebCore::needsTrailingSlash): Ditto.
              (WebCore::Document::visitedLinkHash): Moved this here from PageGroup. This is
              the poor-man's completeURL function. The idea of putting it here is that this
              way it can be alongside the real completeURL function. Later we should figure out
              a way to make this function share more code with the real thing and match behavior.
      
              * dom/Document.h: Marked completeURL function const. Added visitedLinkHash function.
      
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::getMatchedCSSRules): Updated for change to CSSStyleSelector.
      
              * page/Page.cpp:
              (WebCore::Page::allVisitedStateChanged): Added. Calls allVisitedStateChanged on all
              style selectors.
              (WebCore::Page::visitedStateChanged): Ditto.
              * page/Page.h: Added the above functions.
      
              * page/PageGroup.cpp:
              (WebCore::PageGroup::isLinkVisited): Changed to take a visitedLinkHash parameter.
              The CSSStyleSelector now handles actually computing the hash, and it does so by
              calling code in Document.
              (WebCore::PageGroup::addVisitedLink): Refactored so the two overloaded copies share
              a bit more code. Added code that calls visitedStateChanged if a new link was added.
              (WebCore::PageGroup::removeVisitedLinks): Added code to call allVisitedStateChanged
              if any visited links are removed.
              * page/PageGroup.h: Include StringHash.h instead of having the AlreadyHashed struct
              definition here.
      
              * platform/text/StringHash.h:
              (WebCore::CaseFoldingHash::hash): Tweaked to make this a bit more consistent with
              the StringImpl::computeHash function, using the same technique for avoiding 0.
              (WebCore::AlreadyHashed::hash): Added. Was formerly in PageGroup.h.
              (WebCore::AlreadyHashed::avoidDeletedValue): Added. Was formerly in PageGroup.cpp.
      
              * rendering/RenderStyle.cpp:
              (WebCore::RenderStyle::isStyleAvailable): Changed to use an inline function instead
              of getting directly at a data member so the data member could be made private.
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::scrollToAnchor): Added call to updateHistoryForAnchorScroll.
              (WebCore::FrameLoader::updateHistoryForAnchorScroll): Added.
              * loader/FrameLoader.h: Added updateHistoryForAnchorScroll.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30949 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d69216d5
  8. 07 Mar, 2008 1 commit
    • darin@apple.com's avatar
      Reviewed by Brady. · fbeddf3e
      darin@apple.com authored
              - fix a theoretical problem with the visited-link hash table by avoiding collision
                with the special "deleted" value
              - improve efficiency of with the visited-link hash table by not hashing twice
      
              * page/PageGroup.cpp:
              (WebCore::avoidDeletedValue): Added. Makes sure we never try to use the "all ones"
              value, since the hash table uses that for deleted hash table entries.
              (WebCore::PageGroup::isLinkVisited): Call avoidDeletedValue before using the hash
              value with the HashSet.
              (WebCore::PageGroup::addVisitedLink): Ditto.
      
              * page/PageGroup.h: Added a new hash function, AlreadyHashed, for unsigned integer
              values. This assumes that the value is already a hash value, and doesn't try to
              hash it again. Used this for m_visitedLinkHashes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fbeddf3e
  9. 06 Mar, 2008 2 commits
    • darin@apple.com's avatar
      WebCore: · 62cb9c58
      darin@apple.com authored
              Reviewed by Mitz.
      
              - fix regression test failures from the visited-link change
      
              * WebCore.base.exp: Export PageGroup::setShouldTrackVisitedLinks.
              * page/PageGroup.cpp:
              (WebCore::PageGroup::addVisitedLink): Do nothing and return early
              if shouldTrackVisitedLinks is false.
              (WebCore::PageGroup::removeVisitedLinks): Reset m_visitedLinksPopulated
              so the next time a link is queried this will be populated from history.
              (WebCore::PageGroup::setShouldTrackVisitedLinks): Added.
              * page/PageGroup.h: Added setShouldTrackVisitedLinks. This is global
              for now, but it would be better if it was per-page-group instead.
      
      WebKit/mac:
      
              Reviewed by Mitz.
      
              - fix regression test failures from the visited-link change
      
              * History/WebHistory.mm:
              (+[WebHistory setOptionalSharedHistory:]): Call PageGroup::setShouldTrackVisitedLinks
              to turn off visited links if there is no history object. Also call
              removeAllVisitedLinks so we can start over from scratch with the new history.
      
      WebKit/win:
      
              Reviewed by Mitz.
      
              - fix regression test failures and crashes from the visited-link change
      
              * WebCoreSupport/WebChromeClient.cpp:
              (WebChromeClient::populateVisitedLinks): Check for null before calling
              addVisitedLinksToPageGroup.
              * WebCoreSupport/WebFrameLoaderClient.cpp:
              (WebFrameLoaderClient::updateGlobalHistory): Ditto.
              * WebHistory.cpp:
              (WebHistory::setOptionalSharedHistory): Call PageGroup::setShouldTrackVisitedLinks
              to turn off visited links if there is no history object. Also call
              removeAllVisitedLinks so we can start over from scratch with the new history.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30867 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      62cb9c58
    • darin@apple.com's avatar
      WebCore: · 2060803d
      darin@apple.com authored
              Reviewed by Mitz.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=17526
                REGRESSION: iframes are added to Safari's History menu
                by separating the visited link machinery from global history
      
              This should also make page loading faster due to more efficient visited link coloring.
      
              * WebCore.base.exp: Updated.
              * WebCore.vcproj/WebCore.vcproj: Added PageGroup.h/cpp, removed GlobalHistory.h/cpp.
              * WebCore.xcodeproj/project.pbxproj: Ditto. Also removed WebCoreHistory.h/m.
      
              * css/CSSStyleSelector.cpp: Updated includes.
              (WebCore::CSSStyleSelector::initElementAndPseudoState): Eliminated code to set
              currentEncodedURL.
              (WebCore::checkPseudoState): Moved most of the code inside a new
              PageGroup::isLinkVisited function.
              (WebCore::CSSStyleSelector::canShareStyleWithElement): Tightened code a bit by using
              references and only getting colors when needed.
              (WebCore::CSSStyleSelector::getColorFromPrimitiveValue): Ditto.
              * css/CSSStyleSelector.h: Removed EncodedURL, m_encodedURL, and setEncodedURL.
      
              * dom/Document.cpp:
              (WebCore::Document::attach): Removed call to setEncodedURL.
              (WebCore::Document::setURL): Ditto.
              (WebCore::Document::recalcStyleSelector): Ditto.
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::addBackForwardItemClippedAtTarget): Changed code to use
              early exit idiom to be a little more readable.
              (WebCore::FrameLoader::urlsMatchItem): Change to use a reference for slightly
              better efficiency.
              (WebCore::FrameLoader::goToItem): Use early exit idiom to be a little more
              readable.
              (WebCore::FrameLoader::updateHistoryForStandardLoad): Moved history code back
              in here and got rid of the helper function updateGlobalHistory, restoring the
              logic before r30549. Also added a call to the new addVisitedLink function.
              (WebCore::FrameLoader::updateHistoryForClientRedirect): Added code to call
              addVisitedLink here.
              (WebCore::FrameLoader::updateHistoryForBackForwardNavigation): Removed comment.
              (WebCore::FrameLoader::updateHistoryForReload): Removed call to
              updateGlobalHistory; we can just go without updating global history or
              visited links here, at least for now, since it's not clear that a reload
              is a "history event".
              (WebCore::FrameLoader::updateHistoryForRedirectWithLockedHistory): Moved
              history code back where it was, and added the call to addVisitedLink, just
              as in updateHistoryForStandardLoad above.
              * loader/FrameLoader.h: Removed updateGlobalHistory function.
      
              * page/Chrome.cpp:
              (WebCore::ChromeClient::populateVisitedLinks): Added. Empty placeholder so we
              don't have to implement this for every port all at once.
              (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer): Changed to use the
              new PageGroup class.
              * page/ChromeClient.h: Added populateVisitedLinks function, used to fill the
              visited links set from the global history at application startup time.
      
              * page/FrameTree.cpp:
              (WebCore::FrameTree::find): Updated to use the new PageGroup class.
      
              * page/GlobalHistory.h: Removed.
              * page/win/GlobalHistoryWin.cpp: Removed.
              * page/mac/GlobalHistoryMac.mm: Removed.
              * platform/mac/WebCoreHistory.h: Removed.
              * platform/mac/WebCoreHistory.m: Removed.
              * platform/win/WebCoreHistory.cpp: Removed.
              * platform/win/WebCoreHistory.h: Removed.
      
              * page/Page.cpp:
              (WebCore::Page::Page): Set m_group to 0.
              (WebCore::Page::setGroupName): Set up m_group. If the page is not in any
              group, set it to 0 for now to postpone the cost of creating a group.
              (WebCore::Page::initGroup): Added. Sets m_group to point to a single-page
              group; used when getting a group.
              (WebCore::Page::removeAllVisitedLinks): Added. Calls removeVisitedLinks
              on all page groups.
              * page/Page.h: Moved enums inside the WebCore namespace. Removed the
              frameNamespace function and instead added the group and groupPtr functions.
      
              * page/PageGroup.cpp: Added. Contains all the visited code from the
              CSSStyleSelector in the isVisitedLink function, but more efficient because
              we don't allocate memory for the buffer.
              * page/PageGroup.h: Added.
      
              * platform/gtk/TemporaryLinkStubs.cpp: Removed historyContains.
              * platform/qt/TemporaryLinkStubs.cpp: Removed unneeded include.
              * platform/wx/TemporaryLinkStubs.cpp: Removed historyContains.
      
      WebKit:
      
              * WebKit.xcodeproj/project.pbxproj: Added WebHistoryInternal.h.
      
      WebKit/mac:
      
              Reviewed by Mitz.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=17526
                REGRESSION: iframes are added to Safari's History menu
                by separating the visited link machinery from global history
      
              * History/WebHistory.mm: Moved WebHistoryPrivate inside this file.
              (-[WebHistoryPrivate removeItemFromDateCaches:]): Removed the underscore from this
              method name, since it's on a private object.
              (-[WebHistoryPrivate removeItemForURLString:]): Added a call to the
              PageGroup::removeAllVisitedLinks function if the last URL was removed.
              (-[WebHistoryPrivate addItemToDateCaches:]): Removed the underscore from this
              method name, since it's on a private object.
              (-[WebHistoryPrivate removeAllItems]): Call PageGroup::removeAllVisitedLinks.
              (-[WebHistoryPrivate ageLimitDate]): Removed the underscore from this
              method name, since it's on a private object.
              (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
              Ditto.
              (-[WebHistoryPrivate saveHistoryGuts:URL:error:]): Ditto. Also changed this
              to correctly return the error by using the newer version of writeToURL: and
              removed the FIXME about that.
              (-[WebHistoryPrivate addVisitedLinksToPageGroup:]): Added. Calls addVisitedLink
              for every link in the history.
              (-[WebHistory saveToURL:error:]): Removed the FIXME, since we do get the error now.
              (-[WebHistory addItem:]): Moved into the WebPrivate category.
              (-[WebHistory addItemForURL:]): Ditto.
              (-[WebHistory _addItemForURL:title:]): Added. Used for the normal case where we
              create an item and already know its title.
              (-[WebHistory ageLimitDate]): Moved into the WebPrivate category.
              (-[WebHistory containsItemForURLString:]): Ditto.
              (-[WebHistory removeItem:]): Ditto.
              (-[WebHistory setLastVisitedTimeInterval:forItem:]): Ditto.
              (-[WebHistory _itemForURLString:]): Ditto.
              (-[WebHistory _addVisitedLinksToPageGroup:]): Added. For use only inside WebKit.
      
              * History/WebHistoryInternal.h: Added.
              * History/WebHistoryItemInternal.h: Tweaked formatting and includes.
              * History/WebHistoryPrivate.h: Moved the WebHistoryPrivate class out of this header.
              Also reorganized what was left behind.
      
              * WebCoreSupport/WebChromeClient.h: Added populateVisitedLinks.
              * WebCoreSupport/WebChromeClient.mm:
              (WebChromeClient::populateVisitedLinks): Added a call to the new
              -[WebHistory _addVisitedLinksToPageGroup:] method.
      
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::updateGlobalHistory): Changed code to use the new
              -[WebHistory _addItemForURL:title:] method.
      
      WebKit/win:
      
              Reviewed by Mitz.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=17526
                REGRESSION: iframes are added to Safari's History menu
                by separating the visited link machinery from global history
      
              * WebCoreSupport/WebChromeClient.cpp:
              (WebChromeClient::populateVisitedLinks): Added a call to the new
              WebHistory::addVisitedLinksToPageGroup function.
              * WebCoreSupport/WebChromeClient.h: Added populateVisitedLinks.
              Also fixed the webView function to be non-virtual.
      
              * WebCoreSupport/WebFrameLoaderClient.cpp:
              (WebFrameLoaderClient::updateGlobalHistory): Changed to use the
              new WebHistory::addItem function.
              (WebFrameLoaderClient::webHistory): Changed to return a WebHistory*,
              there's no reason to AddRef the result from this function.
              * WebCoreSupport/WebFrameLoaderClient.h: Ditto.
      
              * WebHistory.cpp: Removed IWebHistoryPrivate and _WebCoreHistoryProvider.
              (WebHistory::QueryInterface): Removed IWebHistoryPrivate.
              (sharedHistoryStorage): Added.
              (WebHistory::sharedHistory): Added.
              (WebHistory::optionalSharedHistory): Changed to use sharedHistory().
              (WebHistory::setOptionalSharedHistory): Changed to require a WebHistory
              object, not just an IWebHistory.
              (WebHistory::removeAllItems): Call PageGroup::removeAllVisitedLinks.
              (WebHistory::addItem): Changed parameter types since this is called with
              arguments from WebCore -- at some point this could allow better efficiency.
              (WebHistory::removeItemForURLString):  Call PageGroup::removeAllVisitedLinks
              if the last URL is being removed.
              (addVisitedLinkToPageGroup): Added. Helper. Adds a single link to a group's
              visited link set.
              (WebHistory::addVisitedLinksToPageGroup): Added. Adds all links to a group's
              visited link.
              * WebHistory.h: Removed IWebHistoryPrivate. Removed optionalSharedHistoryInternal
              and added sharedHistory. Replaced addItemForURL and containsItemForURLString with
              non-virtual addItem and addVisitedLinksToPageGroup functions.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30840 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2060803d
  10. 29 Apr, 2007 1 commit
    • weinig's avatar
      LayoutTests: · fef13633
      weinig authored
              Reviewed by Darin and Hyatt.
      
              - test and updated results for http://bugs.webkit.org/show_bug.cgi?id=13487
                Implement O(1) absoluteClippedOverflowRect and absoluteOutlineBox during layout for a possible speed gain
      
              * fast/repaint/bugzilla-3509-expected.checksum:
              * fast/repaint/bugzilla-3509-expected.png:
              * fast/repaint/intermediate-layout-position-clip-expected.checksum: Added.
              * fast/repaint/intermediate-layout-position-clip-expected.png: Added.
              * fast/repaint/intermediate-layout-position-clip-expected.txt: Added.
              * fast/repaint/intermediate-layout-position-clip.html: Added.
              * fast/repaint/intermediate-layout-position-expected.checksum:
              * fast/repaint/intermediate-layout-position-expected.png:
      
      WebCore:
      
              Reviewed by Darin and Hyatt.
      
              - http://bugs.webkit.org/show_bug.cgi?id=13487
                Implement O(1) absoluteClippedOverflowRect and absoluteOutlineBox during layout for a possible speed gain
      
              Test for a bug fixed by this patch: fast/repaint/intermediate-layout-position-clip.html
      
              By keeping track of the total translation and clip during layout, absolutePosition and
              computeAbsoluteRepaintRect become O(1).
      
              * WebCore.pro: Added LayoutState.cpp
              * WebCore.vcproj/WebCore/WebCore.vcproj: Added LayoutState.{cpp,h}
              * WebCore.xcodeproj/project.pbxproj: Added LayoutState.{cpp,h}
              * WebCoreSources.bkl: Added LayoutState.cpp
              * page/FrameView.cpp:
              (WebCore::FrameView::layout): When doing subtree layout, push an initial layout state for the
              layout root.
              * rendering/LayoutState.cpp: Added. A LayoutState corresponding to a box consists of the origin of
              its coordinate system in view coordinates and possibly the clip rect, in view coordinates, which
              applies to its children.
              (WebCore::LayoutState::LayoutState):
              (WebCore::LayoutState::destroy):
              (WebCore::throw):
              (WebCore::LayoutState::operator delete):
              * rendering/LayoutState.h: Added.
              (WebCore::LayoutState::LayoutState):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::layoutBlock): Factored out the "only positioned objects" case into
              layoutOnlyPositionedObjects(). Added code to push/pop LayoutState, unless we have columns, in
              which case we disable/enable LayoutState. Removed the translation by the layout delta
              of the old absolute rects, since that is now integral to absoluteClippedOverflowRect() and
              absoluteOutlineBox().
              (WebCore::RenderBlock::layoutOnlyPositionedObjects): Added this helper function that checks for
              and handles the case where only positioned objects need layout. Returns true in that case.
              (WebCore::RenderBlock::repaintOverhangingFloats): Disabled LayoutState when repainting floats, since
              they may belong to other containers.
              (WebCore::RenderBlock::updateFirstLetter): Disabled LayoutState when adding and removing from the
              first letter container, since it may be different than ourselves.
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle): Minor cleanup: changed element()->document() to the equivalent document().
              (WebCore::RenderBox::offsetForPositionedInContainer): Added. Factored out common code from
              absolutePosition, computeAbsoluteRepaintRect and RenderLayer::updateLayerPosition into this function.
              (WebCore::RenderBox::absolutePosition): Added an O(1) code path when this function is called during
              layout (and LayoutState has not been disabled). Factored out some code into
              offsetForPositionedInContainer.
              (WebCore::RenderBox::absoluteClippedOverflowRect): Added the layout delta here, so callers don't need
              to.
              (WebCore::RenderBox::computeAbsoluteRepaintRect): Added an O(1) code path when this function is called
              during layout (and LayoutState has not been disabled). Factored out some code into
              offsetForPositionedInContainer.
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::layout): Added LayoutState push/pop.
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::layoutBlock): Factored out the "only positioned objects" case into
              layoutOnlyPositionedObjects(). Added LayoutState push/pop. Removed the translation by the layout delta
              of the old absolute rects, since that is now integral to absoluteClippedOverflowRect() and
              absoluteOutlineBox().
              * rendering/RenderFlow.cpp:
              (WebCore::RenderFlow::absoluteClippedOverflowRect): Added an ASSERT.
              * rendering/RenderForeignObject.cpp:
              (WebCore::RenderForeignObject::layout): Disabled LayoutState because it is incompatible with arbitrary
              affine transforms.
              * rendering/RenderHTMLCanvas.cpp:
              (WebCore::RenderHTMLCanvas::layout): Removed the translation by the layout delta of the old absolute
              rects, since that is now integral to absoluteClippedOverflowRect() and absoluteOutlineBox().
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::layout): Ditto.
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::updateLayerPositions): Added ASSERTs. Factored out some code into
              RenderBox::offsetForPositionedInContainer.
              (WebCore::RenderLayer::updateScrollInfoAfterLayout): Disabled LayoutState around the call to
              scrollToOffset.
              * rendering/RenderListItem.cpp:
              (WebCore::RenderListItem::updateMarkerLocation): Disabled LayoutState when moving the list marker, since
              it can trigger repainting in other containers.
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::isRoot): Minor cleanup: changed element()->document() to the equivalent
              document().
              (WebCore::RenderObject::computeAbsoluteRepaintRect): Removed 'return' at the end of the function.
              (WebCore::RenderObject::container): Reordered to avoid calling isText() twice.
              (WebCore::RenderObject::absoluteOutlineBox): Added the layout delta here, so callers don't need to.
              * rendering/RenderSVGContainer.cpp:
              (WebCore::RenderSVGContainer::layout): Disabled LayoutState because it is incompatible with arbitrary
              affine transforms.
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::layout):  Factored out the "only positioned objects" case into
              layoutOnlyPositionedObjects(). Added LayoutState push/pop. Removed the translation by the layout delta
              of the old absolute rects, since that is now integral to absoluteClippedOverflowRect() and
              absoluteOutlineBox().
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::absoluteClippedOverflowRect): Added the layout delta here, so callers
              don't need to.
              (WebCore::RenderTableCell::computeAbsoluteRepaintRect): For the O(1) code path, skipped the correction
              for the parent row, because RenderTableRow doesn't push a translation into LayoutState.
              (WebCore::RenderTableCell::absolutePosition): Ditto.
              * rendering/RenderTableRow.cpp:
              (WebCore::RenderTableRow::layout): Added LayoutState push/pop.
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::setCellWidths): Added LayoutState push/pop if cells are repainted or
              receive layout.
              (WebCore::RenderTableSection::calcRowHeight): Ditto.
              (WebCore::RenderTableSection::layoutRows): Added LayoutState push/pop.
              * rendering/RenderView.cpp:
              (WebCore::RenderView::RenderView):
              (WebCore::RenderView::layout): Added initial LayoutState setup for the layout.
              (WebCore::RenderView::paintBoxDecorations): Minor cleanup: changed element()->document() to the
              equivalent document().
              (WebCore::RenderView::repaintViewRectangle): Ditto.
              (WebCore::RenderView::pushLayoutState): Added. Pushes initial layout state for subtree layout.
              * rendering/RenderView.h:
              (WebCore::RenderView::pushLayoutState):
              (WebCore::RenderView::popLayoutState):
              (WebCore::RenderView::layoutState):
              (WebCore::RenderView::disableLayoutState):
              (WebCore::RenderView::enableLayoutState):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fef13633
  11. 20 Feb, 2007 1 commit
    • weinig's avatar
      Reviewed by Darin and then Sam. · 346f9e37
      weinig authored
              - fix http://bugs.webkit.org/show_bug.cgi?id=10735
                Clicking in SVG results causes WebKit to consume 100% CPU for several minutes
      
              No test since there is no change in functionality.
      
              * CMakeLists.txt:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj: Added PositionIterator.{cpp,h}.
              * WebCoreSources.bkl:
              * dom/Position.cpp:
              (WebCore::Position::Position): Added converting constructor from
              PositionIterator.
              (WebCore::Position::previous): Changed assert() to ASSERT().
              (WebCore::Position::next): Ditto.
              (WebCore::isStreamer): Changed the argument to a PositionIterator.
              (WebCore::Position::upstream): Changed to use PositionIterator.
              (WebCore::Position::downstream): Ditto.
              (WebCore::Position::inRenderedText): Made public.
              (WebCore::Position::hasRenderedNonAnonymousDescendantsWithHeight): Changed
              into a static member function.
              (WebCore::Position::nodeIsUserSelectNone): Ditto.
              * dom/Position.h:
              * dom/PositionIterator.cpp: Added. A Position iterator with constant-time
              increment, decrement, and several predicates on the Position it is at.
              Conversion to/from Position is O(n) in the offset.
              (WebCore::PositionIterator::increment):
              (WebCore::PositionIterator::decrement):
              (WebCore::PositionIterator::atStart):
              (WebCore::PositionIterator::atEnd):
              (WebCore::PositionIterator::atStartOfNode):
              (WebCore::PositionIterator::atEndOfNode):
              (WebCore::PositionIterator::isCandidate):
              * dom/PositionIterator.h: Added.
              (WebCore::PositionIterator::PositionIterator):
              (WebCore::PositionIterator::node):
              (WebCore::PositionIterator::offsetInLeafNode):
              * editing/htmlediting.cpp:
              (WebCore::nextCandidate): Changed to use PositionIterator.
              (WebCore::previousCandidate): Changed to use PositionIterator.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19734 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      346f9e37
  12. 15 Jan, 2007 1 commit
    • eseidel's avatar
      2007-01-15 Eric Seidel <eric@webkit.org> · 8eddecf9
      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
      8eddecf9
  13. 11 Jan, 2007 1 commit
    • beidson's avatar
      WebCore: · d0d91260
      beidson authored
              Reviewed by Anders
      
              Rewrites HTTP Authentication setting up a more platform-independent structure
      
              * WebCore.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
              (WebCore::FrameLoader::didCancelAuthenticationChallenge):
              * loader/FrameLoader.h:
              * loader/FrameLoaderClient.h:
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::ResourceLoader):
              (WebCore::ResourceLoader::didCancel):
              * loader/ResourceLoader.h:
              (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
              (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
              (WebCore::ResourceLoader::receivedCredential):
              (WebCore::ResourceLoader::receivedRequestToContinueWithoutCredential):
              (WebCore::ResourceLoader::receivedCancellation):
              * loader/mac/FrameLoaderMac.mm:
              * loader/mac/ResourceLoaderMac.mm:
              (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
              (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
              (WebCore::ResourceLoader::receivedCredential):
              (WebCore::ResourceLoader::receivedRequestToContinueWithoutCredential):
              (WebCore::ResourceLoader::receivedCancellation):
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::willSendRequest):
              (WebCore::ResourceHandleClient::didReceiveAuthenticationChallenge):
              (WebCore::ResourceHandleClient::didCancelAuthenticationChallenge):
              (WebCore::ResourceHandleClient::receivedCredential):
              (WebCore::ResourceHandleClient::receivedRequestToContinueWithoutCredential):
              (WebCore::ResourceHandleClient::receivedCancellation):
              (WebCore::ResourceHandleClient::willCacheResponse):
              * platform/network/ResourceResponse.h:
              (WebCore::operator!=):
              * platform/network/URLAuthenticationChallenge.cpp: Added.
              (WebCore::URLAuthenticationChallenge::URLAuthenticationChallenge):
              (WebCore::URLAuthenticationChallenge::previousFailureCount):
              (WebCore::URLAuthenticationChallenge::proposedCredential):
              (WebCore::URLAuthenticationChallenge::protectionSpace):
              (WebCore::URLAuthenticationChallenge::failureResponse):
              (WebCore::URLAuthenticationChallenge::error):
              (WebCore::URLAuthenticationChallenge::isNull):
              (WebCore::URLAuthenticationChallenge::nullify):
              (WebCore::operator==):
              (WebCore::operator!=):
              * platform/network/URLAuthenticationChallenge.h: Added.
              (WebCore::URLAuthenticationChallenge::sender):
              (WebCore::URLAuthenticationChallenge::nsURLAuthenticationChallenge):
              * platform/network/URLCredential.cpp: Added.
              (WebCore::URLCredential::URLCredential):
              (WebCore::URLCredential::user):
              (WebCore::URLCredential::password):
              (WebCore::URLCredential::hasPassword):
              (WebCore::URLCredential::persistence):
              (WebCore::operator==):
              * platform/network/URLCredential.h: Added.
              (WebCore::):
              (WebCore::operator!=):
              * platform/network/URLProtectionSpace.cpp: Added.
              (WebCore::URLProtectionSpace::URLProtectionSpace):
              (WebCore::URLProtectionSpace::host):
              (WebCore::URLProtectionSpace::port):
              (WebCore::URLProtectionSpace::serverType):
              (WebCore::URLProtectionSpace::realm):
              (WebCore::URLProtectionSpace::authenticationScheme):
              (WebCore::operator==):
              * platform/network/URLProtectionSpace.h: Added.
              (WebCore::):
              (WebCore::operator!=):
              * platform/network/mac/AuthenticationMac.h: Added.
              * platform/network/mac/AuthenticationMac.mm: Added.
              (WebCore::URLAuthenticationChallenge::URLAuthenticationChallenge):
              (WebCore::mac):
              (WebCore::core):
              * platform/network/mac/ResourceHandleMac.mm:
              (-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]):
              (-[WebCoreResourceHandleAsDelegate connection:didCancelAuthenticationChallenge:]):
              (-[WebCoreResourceHandleAsDelegate useCredential:forAuthenticationChallenge:]):
              (-[WebCoreResourceHandleAsDelegate continueWithoutCredentialForAuthenticationChallenge:]):
              (-[WebCoreResourceHandleAsDelegate cancelAuthenticationChallenge:]):
              * platform/network/mac/ResourceResponseMac.mm:
              (WebCore::operator==):
      
      WebKit:
      
              Reviewed by Anders
      
              Rewrites HTTP Authentication setting up a more platform-independent structure
      
              * WebCoreSupport/WebFrameLoaderClient.h:
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
              (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
              * WebKit.xcodeproj/project.pbxproj:
      
      WebKitQt:
      
              Keep the fancy new FrameLoaderClientQt building with a small api change in WebCore
              Yay for the loader on QT!
      
              * WebCoreSupport/FrameLoaderClientQt.cpp:
              (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
              (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
              * WebCoreSupport/FrameLoaderClientQt.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0d91260
  14. 11 Jun, 2006 1 commit
    • andersca's avatar
      WebCore: · c79dba31
      andersca authored
      2006-06-11  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Geoff.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9390
              Move full-frame plugins to WebCore
              
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              Add PluginDocument
              
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::redirectDataToPlugin):
              Call the bridge.
              
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              Add redirectDataToPlugin which is used to redirect incoming data
              to a plugin.
              
              * bridge/mac/WebCoreViewFactory.h:
              Add pluginSupportsMIMEType which returns whether any plugins support a given MIME type.
              
              * dom/DOMImplementation.cpp:
              * dom/DOMImplementation.h:
              Get rid of createTextDocument and just create a text document explicitly when needed.
              
              * dom/Document.h:
              (WebCore::Document::isPluginDocument):
              * loader/PluginDocument.cpp: Added.
              (WebCore::PluginTokenizer::PluginTokenizer):
              (WebCore::PluginTokenizer::wantsRawData):
              (WebCore::PluginTokenizer::write):
              (WebCore::PluginTokenizer::createDocumentStructure):
              (WebCore::PluginTokenizer::writeRawData):
              (WebCore::PluginTokenizer::stopParsing):
              (WebCore::PluginTokenizer::finish):
              (WebCore::PluginTokenizer::isWaitingForScripts):
              (WebCore::PluginDocument::PluginDocument):
              (WebCore::PluginDocument::createTokenizer):
              * loader/PluginDocument.h: Added.
              (WebCore::PluginDocument::isPluginDocument):
              Add PluginDocument.
              
              * page/Frame.cpp:
              (WebCore::Frame::begin):
              Possibly create a plugin document.
              
              * page/Frame.h:
              (WebCore::Frame::redirectDataToPlugin):
              Add declaration.
              
              * platform/PlugInInfoStore.h:
              * platform/mac/PlugInInfoStoreMac.mm:
              (WebCore::PlugInInfoStore::supportsMIMEType):
              Ask WebCoreViewFactory if the MIME type is supported.
      
      WebKit:
      
      2006-06-11  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Tim.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9390
              Move full-frame plugins to WebCore
      
              * Plugins/WebBaseNetscapePluginStream.h:
              * Plugins/WebBaseNetscapePluginStream.m:
              (-[WebBaseNetscapePluginStream instance]):
              Add instance method which returns the plugin instance.
              
              * Plugins/WebBasePluginPackage.h:
              Add WebPluginManualLoader protocol
              
              * Plugins/WebNetscapePluginDocumentView.h: Removed.
              * Plugins/WebNetscapePluginDocumentView.m: Removed.
      
              * Plugins/WebNetscapePluginEmbeddedView.h:
              * Plugins/WebNetscapePluginEmbeddedView.m:
              (-[WebNetscapePluginEmbeddedView initWithFrame:plugin:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:]):
              (-[WebNetscapePluginEmbeddedView dealloc]):
              (-[WebNetscapePluginEmbeddedView didStart]):
              (-[WebNetscapePluginEmbeddedView pluginView:receivedResponse:]):
              (-[WebNetscapePluginEmbeddedView pluginView:receivedData:]):
              (-[WebNetscapePluginEmbeddedView pluginView:receivedError:]):
              (-[WebNetscapePluginEmbeddedView pluginViewFinishedLoading:]):
              (-[WebNetscapePluginEmbeddedView redeliverStream]):
              Make WebNetscapePluginEmbeddedView support the WebPluginManualLoader protocol. It creates a plugin stream and feeds the
              data manually. Much of this code has been copied from WebNetscapePluginRepresentation.
      
              * Plugins/WebNetscapePluginRepresentation.h: Removed.
              * Plugins/WebNetscapePluginRepresentation.m: Removed.
      
              * Plugins/WebPluginController.h:
              * Plugins/WebPluginController.m:
              (-[WebPluginController pluginView:receivedResponse:]):
              (-[WebPluginController pluginView:receivedData:]):
              (-[WebPluginController pluginView:receivedError:]):
              (-[WebPluginController pluginViewFinishedLoading:]):
              Make WebPluginController support the WebPluginManualLoader protocol so it can feed data manually to WebKit plugins.
      
              * Plugins/WebPluginDatabase.m:        
              (-[WebPluginDatabase refresh]):
              Use WebHTMLView and WebHTMLRepresentation when registering/unregistering plug-in MIME types.
              
              * Plugins/WebPluginDocumentView.h: Removed.
              * Plugins/WebPluginDocumentView.m: Removed.
      
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:loadManually:]):
              (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
              Add loadManually argument.
              
              (-[WebFrameBridge redirectDataToPlugin:]):
              Call down to the HTML representation.
              
              (-[WebFrameBridge viewForJavaAppletWithFrame:attributeNames:attributeValues:baseURL:DOMElement:]):
              Pass NO to loadManually.
              
              (-[WebFrameBridge determineObjectFromMIMEType:URL:]):
              Explicitly check if the MIME type is supported by a plug-in instead of checking the view class.
              
              * WebCoreSupport/WebViewFactory.m:
              (-[WebViewFactory pluginSupportsMIMEType:]):
              New function which returns whether any plugins support a given MIME type.
              
              * WebKit.xcodeproj/project.pbxproj:
              Update for removed files.
              
              * WebView/WebFrame.m:
              (-[WebFrame _reloadForPluginChanges]):
              Remove view type checks.
              
              (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
              (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
              Remove FIXME comments.
              
              * WebView/WebHTMLRepresentation.m:
              (-[WebHTMLRepresentation _redirectDataToManualLoader:forPluginView:]):        
              New function which redirects incoming data to a manual loader.
              
              (-[WebHTMLRepresentation receivedData:withDataSource:]):
              (-[WebHTMLRepresentation receivedError:withDataSource:]):
              (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
              Optionally redirect incoming data.
              
              * WebView/WebHTMLRepresentationPrivate.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14811 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c79dba31
  15. 09 May, 2006 1 commit
    • mjs's avatar
      JavaScriptCore: · bb863518
      mjs authored
              Rubber stamped by Anders.
              
              - renamed kxmlcore to wtf
              
              kxmlcore --> wtf
              KXMLCore --> WTF
              WKC --> WTF
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * bindings/c/c_instance.cpp:
              * bindings/objc/WebScriptObject.mm:
              * kjs/JSImmediate.h:
              * kjs/Parser.cpp:
              * kjs/Parser.h:
              * kjs/array_object.cpp:
              * kjs/collector.cpp:
              (KJS::Collector::registerThread):
              * kjs/collector.h:
              * kjs/config.h:
              * kjs/function.cpp:
              (KJS::isStrWhiteSpace):
              * kjs/function.h:
              * kjs/identifier.cpp:
              * kjs/internal.cpp:
              * kjs/internal.h:
              * kjs/lexer.cpp:
              (Lexer::shift):
              (Lexer::isWhiteSpace):
              (Lexer::isIdentStart):
              (Lexer::isIdentPart):
              * kjs/lookup.cpp:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/number_object.cpp:
              * kjs/object.h:
              * kjs/property_map.cpp:
              * kjs/property_map.h:
              * kjs/string_object.cpp:
              (StringProtoFunc::callAsFunction):
              * kjs/testkjs.cpp:
              (testIsInteger):
              * kjs/ustring.cpp:
              * kjs/ustring.h:
              * kxmlcore: Removed.
              * kxmlcore/AlwaysInline.h: Removed.
              * kxmlcore/Assertions.cpp: Removed.
              * kxmlcore/Assertions.h: Removed.
              * kxmlcore/FastMalloc.cpp: Removed.
              * kxmlcore/FastMalloc.h: Removed.
              * kxmlcore/FastMallocInternal.h: Removed.
              * kxmlcore/Forward.h: Removed.
              * kxmlcore/HashCountedSet.h: Removed.
              * kxmlcore/HashFunctions.h: Removed.
              * kxmlcore/HashMap.h: Removed.
              * kxmlcore/HashSet.h: Removed.
              * kxmlcore/HashTable.cpp: Removed.
              * kxmlcore/HashTable.h: Removed.
              * kxmlcore/HashTraits.h: Removed.
              * kxmlcore/ListRefPtr.h: Removed.
              * kxmlcore/Noncopyable.h: Removed.
              * kxmlcore/OwnArrayPtr.h: Removed.
              * kxmlcore/OwnPtr.h: Removed.
              * kxmlcore/PassRefPtr.h: Removed.
              * kxmlcore/Platform.h: Removed.
              * kxmlcore/RefPtr.h: Removed.
              * kxmlcore/TCPageMap.h: Removed.
              * kxmlcore/TCSpinLock.h: Removed.
              * kxmlcore/TCSystemAlloc.cpp: Removed.
              * kxmlcore/TCSystemAlloc.h: Removed.
              * kxmlcore/UnusedParam.h: Removed.
              * kxmlcore/Vector.h: Removed.
              * kxmlcore/VectorTraits.h: Removed.
              * kxmlcore/unicode: Removed.
              * kxmlcore/unicode/Unicode.h: Removed.
              * kxmlcore/unicode/UnicodeCategory.h: Removed.
              * kxmlcore/unicode/icu: Removed.
              * kxmlcore/unicode/icu/UnicodeIcu.h: Removed.
              * kxmlcore/unicode/posix: Removed.
              * kxmlcore/unicode/qt3: Removed.
              * kxmlcore/unicode/qt4: Removed.
              * kxmlcore/unicode/qt4/UnicodeQt4.h: Removed.
              * pcre/pcre_get.c:
              * wtf: Added.
              * wtf/Assertions.cpp:
              * wtf/Assertions.h:
              * wtf/FastMalloc.cpp:
              (WTF::TCMalloc_ThreadCache::Scavenge):
              (WTF::do_malloc):
              (WTF::do_free):
              (WTF::TCMallocGuard::TCMallocGuard):
              (WTF::malloc):
              (WTF::free):
              (WTF::calloc):
              (WTF::cfree):
              (WTF::realloc):
              * wtf/FastMalloc.h:
              * wtf/FastMallocInternal.h:
              * wtf/Forward.h:
              * wtf/HashCountedSet.h:
              * wtf/HashFunctions.h:
              * wtf/HashMap.h:
              * wtf/HashSet.h:
              * wtf/HashTable.cpp:
              * wtf/HashTable.h:
              * wtf/HashTraits.h:
              * wtf/ListRefPtr.h:
              * wtf/Noncopyable.h:
              * wtf/OwnArrayPtr.h:
              * wtf/OwnPtr.h:
              * wtf/PassRefPtr.h:
              * wtf/RefPtr.h:
              * wtf/TCSystemAlloc.cpp:
              (TCMalloc_SystemAlloc):
              * wtf/Vector.h:
              * wtf/VectorTraits.h:
              * wtf/unicode/UnicodeCategory.h:
              * wtf/unicode/icu/UnicodeIcu.h:
      
      JavaScriptGlue:
      
              Rubber stamped by Anders.
              
              - renamed kxmlcore to wtf
              
              kxmlcore --> wtf
              KXMLCore --> WTF
              WKC --> WTF
      
              * config.h:
              * kxmlcore: Removed.
              * kxmlcore/AlwaysInline.h: Removed.
              * kxmlcore/Assertions.h: Removed.
              * kxmlcore/FastMalloc.h: Removed.
              * kxmlcore/Forward.h: Removed.
              * kxmlcore/HashCountedSet.h: Removed.
              * kxmlcore/HashSet.h: Removed.
              * kxmlcore/Noncopyable.h: Removed.
              * kxmlcore/OwnArrayPtr.h: Removed.
              * kxmlcore/OwnPtr.h: Removed.
              * kxmlcore/PassRefPtr.h: Removed.
              * kxmlcore/Platform.h: Removed.
              * kxmlcore/RefPtr.h: Removed.
              * kxmlcore/Vector.h: Removed.
              * wtf: Added.
      
      WebCore:
      
              Rubber stamped by Anders.
              
              - renamed kxmlcore to wtf
              
              kxmlcore --> wtf
              KXMLCore --> WTF
              WKC --> WTF
      
              * ForwardingHeaders/kxmlcore: Removed.
              * ForwardingHeaders/kxmlcore/AlwaysInline.h: Removed.
              * ForwardingHeaders/kxmlcore/Assertions.h: Removed.
              * ForwardingHeaders/kxmlcore/FastMalloc.h: Removed.
              * ForwardingHeaders/kxmlcore/Forward.h: Removed.
              * ForwardingHeaders/kxmlcore/HashCountedSet.h: Removed.
              * ForwardingHeaders/kxmlcore/HashMap.h: Removed.
              * ForwardingHeaders/kxmlcore/HashSet.h: Removed.
              * ForwardingHeaders/kxmlcore/HashTraits.h: Removed.
              * ForwardingHeaders/kxmlcore/Noncopyable.h: Removed.
              * ForwardingHeaders/kxmlcore/OwnArrayPtr.h: Removed.
              * ForwardingHeaders/kxmlcore/OwnPtr.h: Removed.
              * ForwardingHeaders/kxmlcore/PassRefPtr.h: Removed.
              * ForwardingHeaders/kxmlcore/Platform.h: Removed.
              * ForwardingHeaders/kxmlcore/RefPtr.h: Removed.
              * ForwardingHeaders/kxmlcore/Vector.h: Removed.
              * ForwardingHeaders/wtf: Added.
              * bindings/js/JSHTMLElementWrapperFactory.h:
              * bindings/js/kjs_binding.cpp:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOMImplementationFront.h:
              * bridge/JavaAppletWidget.h:
              * bridge/mac/WebCoreFrameNamespaces.mm:
              * bridge/mac/WebCorePageBridge.mm:
              (initializeLogChannel):
              * bridge/mac/WebCoreStringTruncator.mm:
              * bridge/mac/WebCoreViewFactory.m:
              * config.h:
              * css/css_base.h:
              * css/css_valueimpl.h:
              * css/csshelper.cpp:
              * css/cssparser.h:
              * dom/DOMImplementation.h:
              * dom/Document.h:
              * dom/NamedNodeMap.h:
              * dom/Node.h:
              * dom/NodeList.h:
              * dom/QualifiedName.cpp:
              * dom/Range.h:
              * dom/StyledElement.cpp:
              * dom/dom2_traversalimpl.h:
              * dom/xml_tokenizer.h:
              * editing/RebalanceWhitespaceCommand.cpp:
              * editing/RemoveCSSPropertyCommand.cpp:
              * editing/RemoveNodeAttributeCommand.cpp:
              * editing/RemoveNodeCommand.cpp:
              * editing/RemoveNodePreservingChildrenCommand.cpp:
              * editing/ReplaceSelectionCommand.h:
              * editing/Selection.cpp:
              * editing/SetNodeAttributeCommand.cpp:
              * editing/SplitElementCommand.cpp:
              * editing/SplitTextNodeCommand.cpp:
              * editing/SplitTextNodeContainingElementCommand.cpp:
              * editing/TextIterator.h:
              * editing/htmlediting.h:
              * editing/markup.h:
              * html/CanvasGradient.h:
              * html/CanvasRenderingContext2D.h:
              * html/CanvasStyle.cpp:
              * html/HTMLCollection.h:
              * html/HTMLElementFactory.h:
              * kcanvas/KCanvasFilters.cpp:
              * kcanvas/KCanvasPath.h:
              * kcanvas/RenderPath.cpp:
              * kcanvas/RenderSVGImage.cpp:
              * kcanvas/RenderSVGText.cpp:
              * kcanvas/device/quartz/KCanvasItemQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
              * kcanvas/device/quartz/QuartzSupport.mm:
              * ksvg2/misc/KSVGTimeScheduler.h:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/scripts/make_names.pl:
              * ksvg2/svg/SVGDOMImplementation.cpp:
              * ksvg2/svg/SVGExternalResourcesRequired.h:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGMaskElement.cpp:
              * ksvg2/svg/SVGStyledElement.cpp:
              * ksvg2/svg/SVGTests.h:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGTransformable.cpp:
              * kwq/AccessibilityObjectCache.h:
              * kwq/KWQCString.cpp:
              * kwq/KWQFormData.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQResourceLoader.mm:
              * kwq/KWQTextEdit.mm:
              * loader/Cache.h:
              * loader/CachedObject.h:
              * loader/CachedObjectClientWalker.h:
              * loader/Decoder.h:
              * loader/DocLoader.h:
              * loader/loader.cpp:
              * loader/loader.h:
              * page/DOMWindow.h:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTree.cpp:
              * page/Page.cpp:
              * page/Page.h:
              * page/Plugin.h:
              * platform/Arena.cpp:
              * platform/ArrayImpl.h:
              * platform/AtomicString.cpp:
              * platform/CharsetNames.cpp:
              * platform/Color.cpp:
              * platform/DeprecatedPtrListImpl.cpp:
              * platform/DeprecatedValueListImpl.h:
              * platform/FontFallbackList.h:
              * platform/GraphicsContext.h:
              * platform/GraphicsTypes.cpp:
              * platform/Image.h:
              * platform/KURL.cpp:
              * platform/Logging.cpp:
              * platform/Logging.h:
              * platform/PlatformString.h:
              * platform/PlugInInfoStore.h:
              * platform/StreamingTextDecoder.cpp:
              * platform/StreamingTextDecoder.h:
              * platform/String.cpp:
              * platform/StringHash.h:
              * platform/StringImpl.cpp:
              * platform/StringImpl.h:
              * platform/TextEncoding.cpp:
              * platform/Timer.cpp:
              * platform/Timer.h:
              * platform/TransferJob.h:
              * platform/TransferJobInternal.h:
              * platform/mac/BlockExceptions.mm:
              * platform/mac/ColorMac.mm:
              * platform/mac/FontData.mm:
              * platform/mac/KURLMac.mm:
              * platform/mac/QStringMac.mm:
              * platform/mac/SharedTimerMac.cpp:
              * platform/mac/TextEncodingMac.cpp:
              * platform/mac/WebCoreImageRendererFactory.m:
              * platform/mac/WebCoreKeyGenerator.m:
              * platform/mac/WebCoreTextArea.mm:
              * platform/mac/WebCoreTextField.mm:
              * platform/mac/WebTextRendererFactory.h:
              * platform/mac/WebTextRendererFactory.mm:
              * platform/win/TemporaryLinkStubs.cpp:
              (JavaAppletWidget::JavaAppletWidget):
              * rendering/InlineTextBox.cpp:
              * rendering/RenderText.cpp:
              * rendering/RenderTreeAsText.cpp:
              * rendering/bidi.cpp:
              * xml/XSLTProcessor.h:
              * xpath/impl/XPathExpressionNode.h:
              * xpath/impl/XPathParser.h:
              * xpath/impl/XPathPath.h:
              * xpath/impl/XPathUtil.h:
      
      WebKit:
      
              Rubber stamped by Anders.
              
              - renamed kxmlcore to wtf
              
              kxmlcore --> wtf
              KXMLCore --> WTF
              WKC --> WTF
      
              * Misc/WebKitLogging.h:
              * Misc/WebKitLogging.m:
              (initializeLogChannel):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb863518
  16. 27 Feb, 2006 3 commits
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · 4927d4b9
      eseidel authored
              Reviewed by hyatt.
      
              Fix a bunch more link errors in the win32 build, mostly by adding stubs.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: add JSXMLHttpRequest and PlugInInfoStore
              * WebCore.vcproj/WebCore/build-generated-files.sh: update for JSXMLHttpRequest
              * khtml/ecma/JSXMLHttpRequest.cpp:
              (KJS::JSXMLHttpRequest::getValueProperty): fix switch to compile
              * platform/PlugInInfoStore.h:
              * platform/mac/PlugInInfoStoreMac.mm:
              * platform/win/TemporaryLinkStubs.cpp: add a bunch of stubs.
              (WebCore::TransferJob::errorText):
              (WebCore::TransferJob::isErrorPage):
              (WebCore::Widget::hide):
              (PlugInInfoStore::createPluginInfoForPluginAtIndex):
              (PlugInInfoStore::pluginCount):
              (WebCore::refreshPlugins):
              (QFont::QFont):
              (QFont::~QFont):
              (QFont::italic):
              (QFont::weight):
              (QFontMetrics::QFontMetrics):
              (QFontMetrics::~QFontMetrics):
              (QFontMetrics::xHeight):
              (Widget::setActiveWindow):
              (WebCore::ScrollView::contentsX):
              (WebCore::ScrollView::contentsY):
              (WebCore::ScrollView::contentsHeight):
              (WebCore::ScrollView::contentsWidth):
              (WebCore::ScrollView::visibleHeight):
              (WebCore::ScrollView::visibleWidth):
              (WebCore::ScrollView::hScrollBarMode):
              (WebCore::ScrollView::vScrollBarMode):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13026 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4927d4b9
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · b502dd04
      eseidel authored
              Reviewed by ggaren.
      
              Move KConfig to platform/PlugInInfoStore and add test.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7498
      
              Test: plugins/plugin-javascript-access.html
      
              * ForwardingHeaders/kconfig.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::PluginBase::PluginBase):
              * khtml/ecma/kjs_window.cpp:
              * kwq/KWQKConfigBase.h: Removed.
              * kwq/KWQKConfigBase.mm: Removed.
              * platform/PlugInInfoStore.h: Added.
              * platform/mac/PlugInInfoStoreMac.mm: Added.
              (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
              (WebCore::PlugInInfoStore::pluginCount):
              (WebCore::refreshPlugins):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13020 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b502dd04
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · 7991caa2
      eseidel authored
              Reviewed by darin.
      
              Reworked KConfig and plugin architecture to be much more sane.
              This is part one.  Once this lands, I'll move it under platform with a better name.
      
              Darin had several great suggested further improvements as part of:
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7451
              I'll make some of those when I move this to platform.
      
              No layout test possible (no way to control which plugins DRT sees).
      
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::PluginBase::PluginBase):
              (KJS::PluginBase::~PluginBase):
              (KJS::PluginBase::refresh):
              (KJS::Plugins::getValueProperty):
              (KJS::Plugins::nameGetter):
              (KJS::Plugins::getOwnPropertySlot):
              (KJS::MimeTypes::getValueProperty):
              (KJS::MimeTypes::nameGetter):
              (KJS::MimeTypes::getOwnPropertySlot):
              (KJS::Plugin::getValueProperty):
              (KJS::Plugin::nameGetter):
              (KJS::Plugin::getOwnPropertySlot):
              * khtml/ecma/kjs_navigator.h:
              * khtml/ecma/kjs_window.cpp:
              * kwq/KWQKConfigBase.h:
              (WebCore::PluginInfoStore::PluginInfoStore):
              * kwq/KWQKConfigBase.mm:
              (WebCore::PluginInfoStore::createPluginInfoForPluginAtIndex):
              (WebCore::PluginInfoStore::pluginCount):
              (WebCore::refreshPlugins):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7991caa2
  17. 07 Feb, 2006 1 commit
    • mjs's avatar
      Rubber stamped by Hyatt. · 9156f8e5
      mjs authored
              - move kwq/KWQString.mm to platform/QString.cpp, split out nonportable parts, speculative
              port of one remaining nonportable bit to windows.
      
              * ForwardingHeaders/qstring.h:
              * WebCore+SVG/KDOMSettings.h:
              * WebCore+SVG/kdom.h:
              * WebCore.xcodeproj/project.pbxproj:
              * css/cssparser.h:
              * css/cssstyleselector.cpp:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.h:
              * khtml/ecma/kjs_window.h:
              * khtml/editing/html_interchange.cpp:
              * khtml/editing/visible_position.h:
              * khtml/editing/visible_text.h:
              * khtml/editing/visible_units.cpp:
              * khtml/html/FormDataList.h:
              * khtml/html/html_objectimpl.cpp:
              * khtml/html/htmltokenizer.h:
              * khtml/misc/decoder.h:
              * khtml/misc/formdata.h:
              * khtml/xbl/xbl_protohandler.cpp:
              * khtml/xml/dom_position.cpp:
              * khtml/xsl/xslt_processorimpl.h:
              * ksvg2/svg/SVGHelper.h:
              * ksvg2/svg/SVGPreserveAspectRatioImpl.cpp:
              * ksvg2/svg/SVGStyleElementImpl.cpp:
              * ksvg2/svg/SVGURIReferenceImpl.h:
              * ksvg2/svg/svgpathparser.cpp:
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQBuffer.h:
              * kwq/KWQEvent.h:
              * kwq/KWQFont.mm:
              * kwq/KWQFontFamily.h:
              * kwq/KWQFontMetrics.h:
              * kwq/KWQKConfigBase.h:
              * kwq/KWQKDebug.h:
              * kwq/KWQKHTMLSettings.h:
              * kwq/KWQKJobClasses.h:
              * kwq/KWQKJobClasses.mm:
              * kwq/KWQKLocale.mm:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQKURL.h:
              * kwq/KWQLineEdit.h:
              * kwq/KWQRegExp.h:
              * kwq/KWQRenderTreeDebug.h:
              * kwq/KWQString.h: Removed.
              * kwq/KWQString.mm: Removed.
              * kwq/KWQStringList.h:
              * kwq/KWQTextCodec.h:
              * kwq/KWQTextStream.h:
              * kwq/KWQTextUtilities.mm:
              * kwq/WebCoreScriptDebugger.mm:
              * loader/Cache.h:
              * platform/Color.cpp:
              * platform/Color.h:
              * platform/QString.cpp: Added.
              (allocateHandle):
              (KWQStringData::KWQStringData):
              (QString::QString):
              (QString::insert):
              (QString::detach):
              (QString::remove):
              (QString::setLength):
              (QString::fill):
              (initializeHandleNodeBlock):
              (allocateNode):
              (freeHandle):
              * platform/QString.h: Added.
              * platform/SegmentedString.h:
              * platform/StringImpl.h:
              * platform/mac/Image.mm:
              * platform/mac/QString.mm: Added.
              (QString::setBufferFromCFString):
              (QString::fromCFString):
              (QString::fromNSString):
              (QString::getNSString):
              (QString::utf8):
              (QString::fromUtf8):
              * rendering/bidi.h:
              * rendering/break_lines.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12655 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9156f8e5
  18. 24 Jan, 2006 1 commit
    • hyatt's avatar
      Fix for bug 6781, convert QColor to Color (and QRgb to RGBA32). r=maciej. · 0cb17725
      hyatt authored
              * ForwardingHeaders/qcolor.h: Removed.
              * WebCore+SVG/KDOMSettings.h:
              * WebCore+SVG/RGBColorImpl.cpp:
              (RGBColorImpl::RGBColorImpl):
              (RGBColorImpl::red):
              (RGBColorImpl::green):
              (RGBColorImpl::blue):
              * WebCore+SVG/RGBColorImpl.h:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOMCSS.mm:
              (getWrapperForRGB):
              (setWrapperForRGB):
              (removeWrapperForRGB):
              (-[DOMRGBColor dealloc]):
              (-[DOMRGBColor finalize]):
              (-[DOMRGBColor red]):
              (-[DOMRGBColor green]):
              (-[DOMRGBColor blue]):
              (-[DOMRGBColor _initWithRGB:]):
              (+[DOMRGBColor _RGBColorWithRGB:]):
              (-[DOMRGBColor alpha]):
              (-[DOMRGBColor _color]):
              * bridge/mac/MacFrame.mm:
              (MacFrame::attributedString):
              (MacFrame::fontAttributesForSelectionStart):
              (MacFrame::bodyBackgroundColor):
              (convertAttributesToUnderlines):
              * css/css_valueimpl.cpp:
              (WebCore::CSSPrimitiveValueImpl::CSSPrimitiveValueImpl):
              (WebCore::CSSPrimitiveValueImpl::cssText):
              * css/csshelper.h:
              * css/cssparser.cpp:
              (CSSParser::parseColor):
              (CSSParser::parseColorFromValue):
              * css/cssparser.h:
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::canShareStyleWithElement):
              (WebCore::):
              (WebCore::colorForCSSValue):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
              * css/cssstyleselector.h:
              * kcanvas/KCanvasFilters.h:
              (KCanvasFEDiffuseLighting::lightingColor):
              (KCanvasFEDiffuseLighting::setLightingColor):
              (KCanvasFEFlood::floodColor):
              (KCanvasFEFlood::setFloodColor):
              (KCanvasFESpecularLighting::lightingColor):
              (KCanvasFESpecularLighting::setLightingColor):
              * kcanvas/KCanvasTreeDebug.cpp:
              (operator<<):
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/device/KRenderingDevice.h:
              * kcanvas/device/KRenderingPaintServerGradient.cpp:
              (KCSortedGradientStopList::addStop):
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              (KRenderingPaintServerSolid::color):
              (KRenderingPaintServerSolid::setColor):
              * kcanvas/device/KRenderingPaintServerSolid.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (ciColor):
              * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
              (setupShadingWithStyle):
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
              (KRenderingPaintServerPatternQuartz::setup):
              * khtml/ecma/kjs_css.h:
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::colorRefFromValue):
              (KJS::colorFromValue):
              (KJS::Context2D::putValueProperty):
              (KJS::GradientFunction::callAsFunction):
              * khtml/ecma/kjs_html.h:
              * khtml/editing/apply_style_command.cpp:
              (WebCore::StyleChange::checkForLegacyHTMLStyleChange):
              * khtml/html/html_baseimpl.cpp:
              (WebCore::HTMLBodyElementImpl::parseMappedAttribute):
              * khtml/misc/helper.h:
              * khtml/xml/DocumentImpl.cpp:
              (WebCore::DocumentImpl::DocumentImpl):
              (WebCore::DocumentImpl::resetLinkColor):
              (WebCore::DocumentImpl::resetVisitedLinkColor):
              * khtml/xml/DocumentImpl.h:
              (WebCore::DocumentImpl::setTextColor):
              (WebCore::DocumentImpl::textColor):
              (WebCore::DocumentImpl::linkColor):
              (WebCore::DocumentImpl::visitedLinkColor):
              (WebCore::DocumentImpl::activeLinkColor):
              (WebCore::DocumentImpl::setLinkColor):
              (WebCore::DocumentImpl::setVisitedLinkColor):
              (WebCore::DocumentImpl::setActiveLinkColor):
              * ksvg2/css/SVGCSSStyleSelector.cpp:
              (KDOM::CSSStyleSelector::applySVGProperty):
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              (WebCore::KSVGPainterFactory::fillPaintServer):
              * ksvg2/misc/KSVGTimeScheduler.cpp:
              (KSVG::SVGTimer::notifyAll):
              * ksvg2/svg/SVGAnimateColorElementImpl.cpp:
              (SVGAnimateColorElementImpl::handleTimerEvent):
              (SVGAnimateColorElementImpl::clampColor):
              (SVGAnimateColorElementImpl::color):
              (SVGAnimateColorElementImpl::initialColor):
              * ksvg2/svg/SVGAnimateColorElementImpl.h:
              * ksvg2/svg/SVGAnimateElementImpl.cpp:
              (SVGAnimateElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGColorImpl.cpp:
              (SVGColorImpl::setRGBColor):
              (SVGColorImpl::color):
              * ksvg2/svg/SVGColorImpl.h:
              * ksvg2/svg/SVGGradientElementImpl.cpp:
              (SVGGradientElementImpl::rebuildStops):
              * kwq/KWQAccObject.mm:
              (AXAttributeStringSetStyle):
              * kwq/KWQBrush.h:
              (QBrush::QBrush::QBrush):
              (QBrush::color):
              (QBrush::setColor):
              * kwq/KWQColor.h: Removed.
              * kwq/KWQColor.mm: Removed.
              * kwq/KWQColorData.gperf: Removed.
              * kwq/KWQKConfigBase.h:
              * kwq/KWQKConfigBase.mm:
              (KConfig::readColorEntry):
              * kwq/KWQLineEdit.mm:
              (QLineEdit::setPalette):
              * kwq/KWQNamespace.h:
              (Qt::):
              * kwq/KWQObject.h:
              * kwq/KWQPainter.h:
              * kwq/KWQPainter.mm:
              (QPainter::setPen):
              (QPainter::setBrush):
              (QPainter::drawText):
              (QPainter::drawHighlightForText):
              (QPainter::selectedTextBackgroundColor):
              (_fillRectXX):
              (QPainter::setShadow):
              (QPainter::initFocusRing):
              * kwq/KWQPalette.h:
              (QColorGroup::QColorGroup):
              (QColorGroup::color):
              (QColorGroup::setColor):
              (QColorGroup::background):
              (QColorGroup::foreground):
              (QColorGroup::base):
              (QPalette::QPalette):
              (QPalette::background):
              (QPalette::foreground):
              * kwq/KWQPen.cpp:
              (QPen::QPen):
              (QPen::color):
              (QPen::setColor):
              * kwq/KWQPen.h:
              * kwq/KWQRenderTreeDebug.cpp:
              (operator<<):
              * kwq/KWQTextEdit.mm:
              (QTextEdit::setPalette):
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::tiled_pixmap):
              * loader/CachedImage.h:
              * page/Frame.cpp:
              (Frame::paint):
              * page/Frame.h:
              (MarkedTextUnderline::MarkedTextUnderline):
              * platform/Color.cpp: Added.
              (WebCore::makeRGB):
              (WebCore::makeRGBA):
              (WebCore::parseHexColor):
              (WebCore::Color::Color):
              (WebCore::Color::name):
              (WebCore::Color::setNamedColor):
              (WebCore::Color::hsv):
              (WebCore::Color::setHsv):
              (WebCore::Color::light):
              (WebCore::Color::dark):
              (WebCore::Color::getRgbaF):
              * platform/Color.h: Added.
              (WebCore::Color::Color):
              (WebCore::Color::rgb):
              (WebCore::Color::setRgb):
              (WebCore::operator==):
              (WebCore::operator!=):
              * platform/ColorData.gperf: Added.
              * rendering/InlineTextBox.cpp:
              (khtml::simpleDifferenceBetweenColors):
              (khtml::correctedTextColor):
              (khtml::InlineTextBox::paint):
              (khtml::InlineTextBox::paintSelection):
              (khtml::InlineTextBox::paintMarkedTextBackground):
              (khtml::InlineTextBox::paintDecoration):
              * rendering/RenderTable.h:
              (WebCore::RenderTable::bgColor):
              * rendering/RenderTableCell.cpp:
              (WebCore::outlineBox):
              (WebCore::RenderTableCell::paintBoxDecorations):
              * rendering/font.cpp:
              (khtml::Font::drawHighlightForText):
              (khtml::Font::drawText):
              * rendering/font.h:
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintRootBoxDecorations):
              (WebCore::RenderBox::paintBackgrounds):
              (WebCore::RenderBox::paintBackground):
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::outlineBox):
              * rendering/render_box.h:
              * rendering/render_flow.cpp:
              (RenderFlow::paintFocusRing):
              (RenderFlow::paintOutlineForLine):
              * rendering/render_form.cpp:
              (RenderFieldset::paintBorderMinusLegend):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::paint):
              * rendering/render_layer.h:
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintBackgrounds):
              (WebCore::InlineFlowBox::paintBackground):
              (WebCore::InlineFlowBox::paintBackgroundAndBorder):
              (WebCore::InlineFlowBox::paintDecorations):
              (WebCore::EllipsisBox::paint):
              * rendering/render_line.h:
              * rendering/render_list.cpp:
              (RenderListMarker::paint):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::drawBorder):
              (WebCore::RenderObject::paintBorder):
              (WebCore::RenderObject::paintOutline):
              (WebCore::RenderObject::selectionColor):
              (WebCore::RenderObject::getTextDecorationColors):
              * rendering/render_object.h:
              (WebCore::RenderObject::paintBackgroundExtended):
              * rendering/render_replaced.cpp:
              (WebCore::RenderReplaced::selectionColor):
              * rendering/render_replaced.h:
              * rendering/render_style.h:
              (khtml::BorderValue::isTransparent):
              (khtml::CollapsedBorderValue::color):
              (khtml::RenderStyle::hasBackground):
              (khtml::RenderStyle::borderLeftColor):
              (khtml::RenderStyle::borderRightColor):
              (khtml::RenderStyle::borderTopColor):
              (khtml::RenderStyle::borderBottomColor):
              (khtml::RenderStyle::outlineColor):
              (khtml::RenderStyle::color):
              (khtml::RenderStyle::backgroundColor):
              (khtml::RenderStyle::setBackgroundColor):
              (khtml::RenderStyle::setBorderLeftColor):
              (khtml::RenderStyle::setBorderRightColor):
              (khtml::RenderStyle::setBorderTopColor):
              (khtml::RenderStyle::setBorderBottomColor):
              (khtml::RenderStyle::setOutlineColor):
              (khtml::RenderStyle::setColor):
              (khtml::RenderStyle::initialColor):
              * rendering/render_theme.cpp:
              (khtml::RenderTheme::isControlStyled):
              * rendering/render_theme.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12340 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0cb17725
  19. 04 Dec, 2005 1 commit
    • eseidel's avatar
      Bug #: 5877 · 2928be58
      eseidel authored
      Submitted by: eseidel
      Reviewed by: mjs
              No test cases needed/possible, only removing dead code.
      
              Remove rotten #ifdef'd code from the source:
              APPLE_CHANGES & KHTML_NO_CPLUSPLUS_DOM
              http://bugzilla.opendarwin.org/show_bug.cgi?id=5877
      
              * khtml/dom/css_rule.h:
              (DOM::CSSRule::):
              * khtml/dom/css_stylesheet.h:
              * khtml/dom/css_value.h:
              (DOM::CSSValue::):
              (DOM::CSSPrimitiveValue::):
              * khtml/dom/dom2_events.cpp:
              (DOM::EventListener::handleEventImpl):
              * khtml/dom/dom2_events.h:
              (DOM::Event::):
              (DOM::EventException::):
              (DOM::MutationEvent::):
              * khtml/dom/dom2_range.h:
              (DOM::RangeException::):
              (DOM::Range::):
              * khtml/dom/dom2_traversal.cpp:
              * khtml/dom/dom2_traversal.h:
              (DOM::NodeFilter::):
              * khtml/dom/dom_exception.h:
              (DOM::DOMException::):
              * khtml/dom/dom_misc.cpp:
              (DOM::DomShared::~DomShared):
              * khtml/dom/dom_misc.h:
              (DOM::DomShared::deleteMe):
              * khtml/dom/dom_node.h:
              (DOM::Node::):
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent):
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::JSNodeFilterCondition::acceptNode):
              * khtml/khtml_part.cpp:
              (KHTMLPart::stopLoading):
              * khtml/khtml_part.h:
              * khtml/khtmlview.cpp:
              (KHTMLView::viewportMousePressEvent):
              (KHTMLView::focusNextPrevNode):
              * kwq/KWQKConfigBase.h:
              * kwq/KWQKHTMLPageCache.h:
              * kwq/KWQPointArray.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2928be58
  20. 23 May, 2004 1 commit
    • darin's avatar
      Reviewed by Ken. · fb958e8b
      darin authored
              - went through things marked "unimplemented" or "not implemented" and removed
                or implemented as many as possible
      
              * kwq/DOM.mm: (-[DOMNode dispatchEvent:]): Implemented.
              Also moved DOMAbstractView and DOMDocumentView into DOMViews.mm.
              * kwq/DOM-CSS.mm: (-[DOMDocument getComputedStyle::]): Implemented.
      
              * kwq/DOMEventsInternal.h: Added.
              * kwq/DOMEvents.mm:
              (-[DOMEvent type]): Implemented.
              (-[DOMEvent target]): Implemented.
              (-[DOMEvent currentTarget]): Implemented.
              (-[DOMEvent eventPhase]): Implemented.
              (-[DOMEvent bubbles]): Implemented.
              (-[DOMEvent cancelable]): Implemented.
              (-[DOMEvent timeStamp]): Implemented.
              (-[DOMEvent stopPropagation]): Implemented.
              (-[DOMEvent preventDefault]): Implemented.
              (-[DOMEvent initEvent:::]): Implemented.
              (-[DOMEvent _eventImpl]): Added.
              (-[DOMEvent _initWithEventImpl:]): Added.
              (+[DOMEvent _eventWithImpl:]): Added.
              (-[DOMMouseEvent _mouseEventImpl]): Added.
              (-[DOMMouseEvent screenX]): Implemented.
              (-[DOMMouseEvent screenY]): Implemented.
              (-[DOMMouseEvent clientX]): Implemented.
              (-[DOMMouseEvent clientY]): Implemented.
              (-[DOMMouseEvent ctrlKey]): Implemented.
              (-[DOMMouseEvent shiftKey]): Implemented.
              (-[DOMMouseEvent altKey]): Implemented.
              (-[DOMMouseEvent metaKey]): Implemented.
              (-[DOMMouseEvent button]): Implemented.
              (-[DOMMouseEvent relatedTarget]): Implemented.
              (-[DOMMouseEvent initMouseEvent:::::::::::::::]): Implemented.
              (-[DOMMutationEvent _mutationEventImpl]): Added.
              (-[DOMMutationEvent relatedNode]): Implemented.
              (-[DOMMutationEvent prevValue]): Implemented.
              (-[DOMMutationEvent newValue]): Implemented.
              (-[DOMMutationEvent attrName]): Implemented.
              (-[DOMMutationEvent attrChange]): Implemented.
              (-[DOMMutationEvent initMutationEvent::::::::]):
              (-[DOMUIEvent _UIEventImpl]): Added.
              (-[DOMUIEvent view]): Implemented.
              (-[DOMUIEvent detail]): Implemented.
              (-[DOMUIEvent initUIEvent:::::]): Implemented.
              (-[DOMDocument createEvent:]): Implemented.
      
              * kwq/DOMHTMLInternal.h: Added.
              * kwq/DOMHTML.mm:
              (+[DOMHTMLOptionsCollection _optionsCollectionWithImpl:]): Added.
              (-[DOMHTMLOptionsCollection length]): Implemented.
              (-[DOMHTMLOptionsCollection setLength:]): Implemented.
              (-[DOMHTMLOptionsCollection item:]): Implemented.
              (-[DOMHTMLOptionsCollection namedItem:]): Implemented.
              (-[DOMHTMLSelectElement options]): Implemented.
      
              * kwq/DOMViews.h: Changed DOMDocumentView to be a category on DOMDocument
              rather than a separate class.
              * kwq/DOMViewsInternal.h: Added.
              * kwq/DOMViews.mm: Added.
              (-[DOMAbstractView document]): Implemnted.
              (-[DOMAbstractView _abstractViewImpl]): Added.
              (-[DOMAbstractView _initWithAbstractViewImpl:]): Added.
              (+[DOMAbstractView _abstractViewWithImpl:]): Added.
              (-[DOMDocument defaultView]): Implemented.
      
              * khtml/dom/dom2_views.h: Made AbstractView constructor public to allow creation in
              the bindings. Would not be necessary if the impl classes were used consistently.
      
              * khtml/html/html_formimpl.h: Added options() function to HTMLSelectElementImpl.
              Added HTMLOptionsCollectionImpl class.
              * khtml/html/html_formimpl.cpp:
              (HTMLSelectElementImpl::~HTMLSelectElementImpl): Added code to detach and deref the
              options collection.
              (HTMLSelectElementImpl::options): Create an options collection if needed.
              (HTMLOptionsCollectionImpl::length): Added. Not yet implemented.
              (HTMLOptionsCollectionImpl::setLength): Ditto.
              (HTMLOptionsCollectionImpl::item): Ditto.
              (HTMLOptionsCollectionImpl::namedItem): Ditto.
      
              * khtml/khtmlview.h: Move unused focusNextPrevChild virtual function inside !APPLE_CHANGES.
              * khtml/khtmlview.cpp: Put the tp, paintBuffer, and formCompletions fields entirely
              inside !APPLE_CHANGES. Also made QT_NO_TOOLTIP entirely disable the tooltip field.
              Also put focusNextPrevChild and formCompletionItems functions inside !APPLE_CHANGES.
      
              * khtml/rendering/render_text.h: Removed unused isFixedWidthFont member function.
              * khtml/rendering/render_text.cpp: Ditto.
      
              * kwq/KWQCursor.h: Removed unused pos member function.
              * kwq/KWQCursor.mm: Ditto.
      
              * kwq/KWQFontMetrics.h: Removed unused rightBearing and leftBearing member functions.
              * kwq/KWQFontMetrics.mm: Ditto.
      
              * kwq/KWQKComboBox.h: Removed KCompletionBase as a base class.
      
              * kwq/KWQKConfigBase.h: Removed unused readBoolEntry, writeEntry, and readListEntry
              member functions.
              * kwq/KWQKConfigBase.mm: Ditto.
              (KConfig::readEntry): Improved "not implemented" message to indicate which key is uinimplemented.
              (KConfig::readNumEntry): Ditto.
              (KConfig::readUnsignedNumEntry): Ditto.
      
              * kwq/KWQKLineEdit.h: Removed everything, since all the KLineEdit stuff was unused.
              Changed KLineEdit to just be a typedef for QLineEdit.
      
              * kwq/KWQSlot.mm: Removed slotAutoScroll.
              (KWQSlot::KWQSlot): And from here.
              (KWQSlot::call): And from here.
      
              * kwq/KWQTextStream.h: Removed unused QTextOStream and QTextIStream.
              * kwq/KWQTextStream.mm: Removed unused QTextIStream function. Also made buffer sizes larger
              so we don't have any problems on 64-bit systems. 10 bytes might not be long enough to sprintf an
              integer or a long or a pointer, but 100 bytes surely will.
      
              * kwq/KWQWidget.h: Removed unused focusNextPrevChild.
              * kwq/KWQWidget.mm: Ditto.
      
              * WebCore.pbproj/project.pbxproj: Removed some files, added others.
      
              * ForwardingHeaders/kcompletionbox.h: Emptied out, no KWQKCompletionBox.h any more.
              * ForwardingHeaders/kiconloader.h: Emptied out, no KWQKIconLoader.h any more.
              * ForwardingHeaders/kmimetype.h: Emptied out, no KWQKMimeType.h any more.
              * ForwardingHeaders/ksimpleconfig.h: Emptied out, no KWQKSimpleConfig.h any more.
              * ForwardingHeaders/qfontinfo.h: Emptied out, no KWQFontInfo.h any more.
              * ForwardingHeaders/qtooltip.h: Replaced with define of QT_NO_TOOLTIP, no
              KWQToolTip.h any more.
      
              * kwq/KWQCompletion.h: Removed.
              * kwq/KWQCompletion.mm: Removed.
              * kwq/KWQFontInfo.h: Removed.
              * kwq/KWQFontInfo.mm: Removed.
              * kwq/KWQKCompletionBox.h: Removed.
              * kwq/KWQKIconLoader.h: Removed.
              * kwq/KWQKIconLoader.mm: Removed.
              * kwq/KWQKMimeType.h: Removed.
              * kwq/KWQKMimeType.mm: Removed.
              * kwq/KWQKSimpleConfig.h: Removed.
              * kwq/KWQKSimpleConfig.mm: Removed.
              * kwq/KWQToolTip.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb958e8b
  21. 09 Oct, 2003 1 commit
    • cblu's avatar
      WebCore: · 077d5564
      cblu authored
      	Fixed: <rdar://problem/3333897>: should support navigator.plugins.refresh as a way to add a plugin without restarting Safari
      
              Reviewed by rjw.
      
              * khtml/ecma/kjs_navigator.cpp:
              (PluginBase::refresh): new
              (PluginsFunc::tryCall): call refresh
              * kwq/KWQKConfigBase.h:
              * kwq/KWQKConfigBase.mm:
              (RefreshPlugins): new
              * kwq/WebCoreViewFactory.h:
      
      WebKit:
      
      	Fixed: <rdar://problem/3333897>: should support navigator.plugins.refresh as a way to add a plugin without restarting Safari
      
              Reviewed by rjw.
      
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView dealloc]): release the plug-in object
              * Plugins.subproj/WebBasePluginPackage.h:
              * Plugins.subproj/WebBasePluginPackage.m:
              (-[WebBasePluginPackage initWithPath:]): store the last mod date
              (-[WebBasePluginPackage dealloc]): release the last mod date
              (-[WebBasePluginPackage lastModifiedDate]): new
              (-[WebBasePluginPackage isEqual:]): new
              (-[WebBasePluginPackage hash]): new
              * Plugins.subproj/WebNetscapePluginPackage.m:
              (-[WebNetscapePluginPackage load]): convert the NPP_Shutdown proc pointer so that we can use it later
              (-[WebNetscapePluginPackage unload]): added log message
              * Plugins.subproj/WebPluginDatabase.h:
              * Plugins.subproj/WebPluginDatabase.m:
              (-[WebPluginDatabase pluginForKey:withEnumeratorSelector:]): tweak
              (-[WebPluginDatabase plugins]): tweak
              (-[WebPluginDatabase init]): call refresh
              (-[WebPluginDatabase refresh]): new
              (-[WebPluginDatabase loadPluginIfNeededForMIMEType:]): tweak
              * WebCoreSupport.subproj/WebViewFactory.m:
              (-[WebViewFactory refreshPlugins:]): new
              * WebView.subproj/WebControllerSets.h:
              * WebView.subproj/WebControllerSets.m:
              (+[WebViewSets makeWebViewsPerformSelector:]): new
              * WebView.subproj/WebFrame.m:
              (-[WebFrame _reloadForPluginChanges]): new
              * WebView.subproj/WebFramePrivate.h:
              * WebView.subproj/WebView.m:
              (-[WebView _reloadForPluginChanges]): new
              * WebView.subproj/WebViewPrivate.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5158 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      077d5564
  22. 07 Feb, 2003 1 commit
    • rjw's avatar
      WebKit: · 5fd5a7f5
      rjw authored
              Changes to support per WebController preferences.
      
              Reviewed by Maciej and Ken.
      
              * WebView.subproj/WebController.m:
              (-[WebController setPreferences:]):
              * WebView.subproj/WebControllerPrivate.h:
              * WebView.subproj/WebControllerPrivate.m:
              (-[WebControllerPrivate init]):
              (-[WebControllerPrivate dealloc]):
              (-[WebController _setFormDelegate:]):
              (-[WebController _formDelegate]):
              (-[WebController _settings]):
              (-[WebController _updateWebCoreSettingsFromPreferences:]):
              (-[WebController _releaseUserAgentStrings]):
              (-[WebController _preferencesChangedNotification:]):
              * WebView.subproj/WebFrame.m:
              (-[WebFrame initWithName:webView:controller:]):
              * WebView.subproj/WebPreferences.h:
              * WebView.subproj/WebPreferences.m:
              (-[WebPreferences _postPreferencesChangesNotification]):
              (+[WebPreferences load]):
              (-[WebPreferences _stringValueForKey:]):
              (-[WebPreferences _setStringValue:forKey:]):
              (-[WebPreferences _integerValueForKey:]):
              (-[WebPreferences _setIntegerValue:forKey:]):
              (-[WebPreferences _boolValueForKey:]):
              (-[WebPreferences _setBoolValue:forKey:]):
              (-[WebPreferences standardFontFamily]):
              (-[WebPreferences setStandardFontFamily:]):
              (-[WebPreferences fixedFontFamily]):
              (-[WebPreferences setFixedFontFamily:]):
              (-[WebPreferences serifFontFamily]):
              (-[WebPreferences setSerifFontFamily:]):
              (-[WebPreferences sansSerifFontFamily]):
              (-[WebPreferences setSansSerifFontFamily:]):
              (-[WebPreferences cursiveFontFamily]):
              (-[WebPreferences setCursiveFontFamily:]):
              (-[WebPreferences fantasyFontFamily]):
              (-[WebPreferences setFantasyFontFamily:]):
              (-[WebPreferences defaultFontSize]):
              (-[WebPreferences setDefaultFontSize:]):
              (-[WebPreferences defaultFixedFontSize]):
              (-[WebPreferences setDefaultFixedFontSize:]):
              (-[WebPreferences minimumFontSize]):
              (-[WebPreferences setMinimumFontSize:]):
              (-[WebPreferences defaultTextEncodingName]):
              (-[WebPreferences setDefaultTextEncodingName:]):
              (-[WebPreferences userStyleSheetEnabled]):
              (-[WebPreferences setUserStyleSheetEnabled:]):
              (-[WebPreferences userStyleSheetLocation]):
              (-[WebPreferences setUserStyleSheetLocation:]):
              (-[WebPreferences JavaEnabled]):
              (-[WebPreferences setJavaEnabled:]):
              (-[WebPreferences JavaScriptEnabled]):
              (-[WebPreferences setJavaScriptEnabled:]):
              (-[WebPreferences JavaScriptCanOpenWindowsAutomatically]):
              (-[WebPreferences setJavaScriptCanOpenWindowsAutomatically:]):
              (-[WebPreferences pluginsEnabled]):
              (-[WebPreferences setPluginsEnabled:]):
              (-[WebPreferences allowAnimatedImages]):
              (-[WebPreferences allowAnimatedImageLooping]):
              (-[WebPreferences setAllowAnimatedImageLooping:]):
              (-[WebPreferences setWillLoadImagesAutomatically:]):
              (-[WebPreferences willLoadImagesAutomatically]):
              (-[WebPreferences _initialTimedLayoutDelay]):
              (-[WebPreferences _initialTimedLayoutSize]):
              (-[WebPreferences _pageCacheSize]):
              (-[WebPreferences _objectCacheSize]):
              (-[WebPreferences _initialTimedLayoutEnabled]):
              (-[WebPreferences _resourceTimedLayoutDelay]):
              (-[WebPreferences _resourceTimedLayoutEnabled]):
              * WebView.subproj/WebPreferencesPrivate.h:
      WebCore:
              Changes to support per WebController preferences.
              KHTMLPart now always accesses preferences from it's m_setting.
              Changes made to WebPreferences pass to WebCoreSetting to KTMLSettings.
              Added JavaScriptCanOpenWindowsAutomatically to KHTMLSettings.
      
              Reviewed by Maciej and Ken.
      
              * khtml/ecma/kjs_window.cpp:
              (WindowFunc::tryCall):
              * khtml/khtml_part.cpp:
              (KHTMLPart::init):
              (KHTMLPart::restoreURL):
              (KHTMLPart::openURL):
              (KHTMLPart::begin):
              (KHTMLPart::reparseConfiguration):
              * khtml/khtmlpart_p.h:
              * kwq/KWQKConfigBase.h:
              * kwq/KWQKConfigBase.mm:
              (KConfig::readUnsignedNumEntry):
              * kwq/KWQKHTMLPart.h:
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::setSettings):
              * kwq/KWQKHTMLSettings.h:
              * kwq/KWQKHTMLSettings.mm:
              (KHTMLSettings::stdFontName):
              (KHTMLSettings::fixedFontName):
              (KHTMLSettings::serifFontName):
              (KHTMLSettings::sansSerifFontName):
              (KHTMLSettings::cursiveFontName):
              (KHTMLSettings::fantasyFontName):
              (KHTMLSettings::minFontSize):
              (KHTMLSettings::mediumFontSize):
              (KHTMLSettings::mediumFixedFontSize):
              (KHTMLSettings::isJavaEnabled):
              (KHTMLSettings::autoLoadImages):
              (KHTMLSettings::isPluginsEnabled):
              (KHTMLSettings::isJavaScriptEnabled):
              (KHTMLSettings::JavaScriptCanOpenWindowsAutomatically):
              (KHTMLSettings::userStyleSheet):
              (KHTMLSettings::setStdFontName):
              (KHTMLSettings::setFixedFontName):
              (KHTMLSettings::setSerifFontName):
              (KHTMLSettings::setSansSerifFontName):
              (KHTMLSettings::setCursiveFontName):
              (KHTMLSettings::setFantasyFontName):
              (KHTMLSettings::setMinFontSize):
              (KHTMLSettings::setMediumFontSize):
              (KHTMLSettings::setMediumFixedFontSize):
              (KHTMLSettings::setAutoLoadImages):
              (KHTMLSettings::setIsJavaScriptEnabled):
              (KHTMLSettings::setIsJavaEnabled):
              (KHTMLSettings::setArePluginsEnabled):
              (KHTMLSettings::setJavaScriptCanOpenWindowsAutomatically):
              (KHTMLSettings::setUserStyleSheet):
              * kwq/WebCoreBridge.h:
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge init]):
              (-[WebCoreBridge initializeSettings:]):
              * kwq/WebCoreSettings.h:
              * kwq/WebCoreSettings.mm:
              (-[WebCoreSettings dealloc]):
              (-[WebCoreSettings init]):
              (-[WebCoreSettings setStandardFontFamily:]):
              (-[WebCoreSettings setFixedFontFamily:]):
              (-[WebCoreSettings setSerifFontFamily:]):
              (-[WebCoreSettings setSansSerifFontFamily:]):
              (-[WebCoreSettings setCursiveFontFamily:]):
              (-[WebCoreSettings setFantasyFontFamily:]):
              (-[WebCoreSettings setMinimumFontSize:]):
              (-[WebCoreSettings setDefaultFontSize:]):
              (-[WebCoreSettings setDefaultFixedFontSize:]):
              (-[WebCoreSettings setJavaEnabled:]):
              (-[WebCoreSettings setPluginsEnabled:]):
              (-[WebCoreSettings setJavaScriptEnabled:]):
              (-[WebCoreSettings setJavaScriptCanOpenWindowsAutomatically:]):
              (-[WebCoreSettings setWillLoadImagesAutomatically:]):
              (-[WebCoreSettings setUserStyleSheetLocation:]):
              (-[WebCoreSettings userStyleSheetLocation]):
              (-[WebCoreSettings settings]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5fd5a7f5
  23. 21 Jan, 2003 1 commit
  24. 26 Oct, 2002 1 commit
  25. 13 Jul, 2002 1 commit
    • darin's avatar
      top level: · f6706a30
      darin authored
              * embed.am: Removed.
      
      Tools:
      
              * Scripts/embed-in-alex: Added. Replaces the rules in embed.am as
      	the way to make our frameworks embed themselves in Alex so we can
      	rebuild a framework and re-run Alex with the changes without building
      	Alex too.
      
              * Scripts/create-forwarding-header: Added. Mainly useful for the
      	one-time job of making forwarding headers for WebCore, but saving
      	for possible use in the future.
      
              * Scripts/commit-log-editor: Make Tools log show up after top level,
      	but before things like JavaScriptCore.
      
      JavaScriptCore:
      
              * Makefile.am: Don't use embed.am any more.
              * JavaScriptCore.pbproj/project.pbxproj: Use embed-into-alex instead
      	of make embed.
      
      WebFoundation:
      
              * Makefile.am: Remove include of embed.am.
      
              * WebFoundation.pbproj/project.pbxproj: Remove unneeded ApplicationServices
      	framework search path. Use embed-into-alex instead of make embed.
      
      WebCore:
      
              * ForwardingHeaders/*: Added. New approach to headers to try to
      	make Project Builder's header dependency support work even for
      	includes like #include <render/render_object.h>.
              * kwq/kjs/*: Removed. Now part of ForwardingHeaders.
      
              * Makefile.am: Remove embed.am support.
      
              * WebCore.pbproj/project.pbxproj: Remove other search paths, and
      	add ForwardingHeaders directory as a search path. Add qucomextra_p.h.
      
              * khtml/ecma/kjs_navigator.cpp: Made gratuitous changes to touch this
      	file to make things build without requiring clean rebuild.
      
              * khtml/rendering/render_form.cpp: Removed many unneeded QObject::
      	qualifiers from inside APPLE_CHANGES to touch this file to make things
      	build without requiring clean rebuild.
      
              * kwq/KWQButton.mm: (QButton::setText), (QButton::text):
              * kwq/KWQColor.mm: (QColor::setNamedColor):
      	* kwq/KWQKConfigBase.mm: (KConfig::readEntry):
              * kwq/KWQKHTMLSettings.mm: (KHTMLSettings::stdFontName), (KHTMLSettings::fixedFontName):
              (KHTMLSettings::serifFontName), (KHTMLSettings::sansSerifFontName),
      	(KHTMLSettings::cursiveFontName), (KHTMLSettings::fantasyFontName), (KHTMLSettings::encoding):
              * kwq/KWQKLocale.mm: (i18n):
              * kwq/KWQKMessageBox.mm: (KMessageBox::error), (KMessageBox::warningYesNo):
              (KMessageBox::questionYesNo), (KMessageBox::sorry):
              * kwq/KWQListBox.mm: (-[KWQBrowserDelegate browser:willDisplayCell:atRow:column:]):
              * kwq/WebCoreBridge.mm: (-[WebCoreBridge selectedText]):
              Wean from QSTRING_TO_NSSTRING and NSSTRING_TO_QSTRING.
      
              * kwq/KWQComboBox.mm:
              (QComboBox::insertItem): Wean from QSTRING_TO_NSSTRING. Note that this
      	now stores a copy of the string in the array. The old version was unsafe
      	if anyone later modified the QString that was passed in.
      
              * kwq/KWQFontMetrics.mm: (QFontMetrics::width):
              * kwq/KWQPainter.mm: (QPainter::drawUnderlineForText), (QPainter::drawText):
      	Wean from QSTRING_TO_NSSTRING_LENGTH and _FAST_QSTRING_TO_NSSTRING. We still have
      	speed as high as before, in the "length" case slightly faster.
      
              * kwq/qt/qstring.h: Remove QSTRING_TO_NSSTRING family of macros.
      
              * kwq/KWQInvisibleButton.mm:
              * kwq/KWQKHTMLPart.mm:
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              * kwq/KWQKJavaAppletWidget.mm:
              * kwq/KWQKloader.mm:
              * kwq/KWQView.mm:
              * kwq/KWQsignals.mm:
              * kwq/WebCoreBridge.mm:
              * kwq/kdecore/kconfig.h:
              * kwq/kdecore/klibloader.h:
              * kwq/kdecore/klocale.h:
              * kwq/khtml/khtml_ext.h:
              * kwq/khtml/khtml_factory.h:
              * kwq/kio/kmimetype.h:
      	Remove subdirectory prefix from imports to match Project Builder include scheme.
      
              * kwq/KWQKCursor.mm: (+[NSCursor _WebCore_linkCursor]):
              * kwq/KWQKLocale.mm: (i18n):
              * kwq/KWQKstddirs.mm: (locate):
      	Use bundleForClass instead of bundleWithIdentifier to avoid any potential problems
      	with multiple versions of the framework installed on the same system.
      
              * kwq/KWQKLineEdit.mm:
              (KLineEdit::completionBox): Remove _logNotYetImplemented, since this is implemented
      	well enough for our needs now, and if we need to implement it later, it will become
      	clear from the application behavior. This should be the destiny of most of these.
      
              * kwq/kdecore/kglobal.h: Simplify.
              * kwq/KWQKGlobal.mm: Simplify.
              * kwq/qt/qlineedit.h: Simplify.
              * kwq/KWQLineEdit.mm: Simplify.
      
              * kwq/KWQPaintDeviceMetrics.mm: Remove unneeded import.
              * kwq/qt/qbutton.h: Remove unneeded destructor.
      
      WebKit:
      
              * History.subproj/IFURIEntry.m: (-[IFURIEntry image]):
      	Use [IFURIEntry class] instead of [self class] so we get the
      	icon from the WebKit bundle even if someone subclasses IFURIEntry.
              * Plugins.subproj/IFNullPluginView.mm:
              (-[IFNullPluginView initWithFrame:mimeType:arguments:]): Use
      	bundleForClass instead of bundleWithIdentifier so things work even
      	if we have two copies of WebKit installed on the same machine.
      
              * Makefile.am: Remove include of embed.am.
      
              * WebKit.pbproj/project.pbxproj: Use embed-into-alex instead of make embed.
      	Also change bundle identifier to com.apple.WebKit instead of com.apple.webkit
      	to match standard used by our other frameworks. (Checked that we no longer have
      	any hard-coding of the bundle identifier anywhere in our code.)
      
      WebBrowser:
      
              * WebBrowser.pbproj/project.pbxproj: Remove unneeded build phase.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1551 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f6706a30
  26. 25 Apr, 2002 1 commit
    • darin's avatar
      WebCore: · 366d0866
      darin authored
      	Rework plugin code to prepare to move more of it into WebKit.
      
      	* khtml/rendering/render_applet.cpp:
      	(RenderApplet::RenderApplet): Create a widget for the applet using
      	the new simpler API.
      
      	* kwq/kdecore/kconfig.h:
      	* kwq/KWQKConfigBase.mm: Eliminate KConfigBase.
      	Set things up so we are poised to handle the other non-plugin
      	config keys easily in the future.
      
      	* kwq/KWQKHTMLPart.mm: (KHTMLPart::requestObject): Use the new simpler
      	IFPluginWidgetCreate API instead of the older WCPluginWidget one.
      
      	* kwq/qt/qstring.h: Add simpler conversions to/from NSString.
      	* kwq/KWQString.mm: (QString::fromNSString): New.
      
      	* kwq/WCPluginWidget.h: Made this API simpler both for the C++
      	side and the Objective-C side. There's now no class, and only one
      	function that needs to be supplied (normally by WebKit).
      	* kwq/WCJavaAppletWidget.h: Same thing for the Java case.
      
      	* kwq/WCJavaAppletWidget.mm:
      	(IFSetJavaAppletViewCreationFunction): New.
      	(IFJavaAppletWidgetCreate): New. Most of the code that was in here
      	is now moved into WebKit.
      	* kwq/WCPluginWidget.mm:
      	(IFSetPluginViewCreationFunction): New.
      	(IFPluginWidgetCreate): New. Most of the code that was in here
      	is now moved into WebKit.
      
      	* libwebcore.exp: Update for new function names.
      
      WebKit:
      
      	Rework plugin code to prepare to move more of here from WebCore.
      
      	* Plugins.subproj/IFPluginView.mm:
      	(IFPluginViewCreate): New. Does all the work of creating an NSView
      	for a plug-in, including stuff previously done in WebCore.
      	(IFJavaAppletViewCreate): Same as above, for Java applets.
      	(+[IFPluginView load]): Set up the function pointers using the new
      	improved WebCore API.
      
      	* Plugins.subproj/IFNullPluginView.mm:
      	(-[IFNullPluginView load]): Remove this setup because now there's
      	no separate call to set up a null plug-in.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      366d0866
  27. 21 Mar, 2002 1 commit
  28. 06 Nov, 2001 1 commit
  29. 02 Oct, 2001 1 commit
  30. 10 Sep, 2001 3 commits
  31. 05 Sep, 2001 2 commits