Changeset 182734 in webkit


Ignore:
Timestamp:
Apr 13, 2015, 8:40:42 AM (10 years ago)
Author:
Darin Adler
Message:

Remove needless recreation of URL in NavigationScheduler::scheduleLocationChange
https://bugs.webkit.org/show_bug.cgi?id=143662

Reviewed by Sam Weinig.

  • loader/NavigationScheduler.cpp:

(WebCore::NavigationScheduler::scheduleLocationChange): Removed unnecessary code
to convert a URL to a String and then back into a URL.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r182731 r182734  
     12015-04-13  Darin Adler  <darin@apple.com>
     2
     3        Remove needless recreation of URL in NavigationScheduler::scheduleLocationChange
     4        https://bugs.webkit.org/show_bug.cgi?id=143662
     5
     6        Reviewed by Sam Weinig.
     7
     8        * loader/NavigationScheduler.cpp:
     9        (WebCore::NavigationScheduler::scheduleLocationChange): Removed unnecessary code
     10        to convert a URL to a String and then back into a URL.
     11
    1122015-04-13  Csaba Osztrogonác  <ossy@webkit.org>
    213
  • trunk/Source/WebCore/loader/NavigationScheduler.cpp

    r182356 r182734  
    387387    // If the URL we're going to navigate to is the same as the current one, except for the
    388388    // fragment part, we don't need to schedule the location change.
    389     URL parsedURL(ParsedURLString, url);
    390     if (parsedURL.hasFragmentIdentifier() && equalIgnoringFragmentIdentifier(m_frame.document()->url(), parsedURL)) {
     389    if (url.hasFragmentIdentifier() && equalIgnoringFragmentIdentifier(m_frame.document()->url(), url)) {
    391390        loader.changeLocation(securityOrigin, m_frame.document()->completeURL(url), referrer, lockHistory, lockBackForwardList, false, AllowNavigationToInvalidURL::No);
    392391        return;
Note: See TracChangeset for help on using the changeset viewer.