Changeset 17848 in webkit


Ignore:
Timestamp:
Nov 18, 2006 2:59:50 PM (17 years ago)
Author:
rwlbuis
Message:

LayoutTests:

Reviewed by Maciej.

Testcase for:
http://bugs.webkit.org/show_bug.cgi?id=11321
Element with :target pseudo-class still matched after fragment identifier change

  • fast/css/target-fragment-match-expected.checksum: Added.
  • fast/css/target-fragment-match-expected.png: Added.
  • fast/css/target-fragment-match-expected.txt: Added.
  • fast/css/target-fragment-match.html: Added.

WebCore:

Reviewed by Maciej.

http://bugs.webkit.org/show_bug.cgi?id=11321
Element with :target pseudo-class still matched after fragment identifier change

Make sure the page does a style recalculation and possible rendering
when navigating back from a page with an anchor to a page without
an anchor.

  • loader/FrameLoader.cpp: (WebCore::FrameLoader::gotoAnchor):
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r17842 r17848  
     12006-11-18  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Maciej.
     4
     5        Testcase for:
     6        http://bugs.webkit.org/show_bug.cgi?id=11321
     7        Element with :target pseudo-class still matched after fragment identifier change
     8
     9        * fast/css/target-fragment-match-expected.checksum: Added.
     10        * fast/css/target-fragment-match-expected.png: Added.
     11        * fast/css/target-fragment-match-expected.txt: Added.
     12        * fast/css/target-fragment-match.html: Added.
     13
    1142006-11-18  Alexey Proskuryakov  <ap@webkit.org>
    215
  • trunk/WebCore/ChangeLog

    r17847 r17848  
     12006-11-18  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Maciej.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=11321
     6        Element with :target pseudo-class still matched after fragment identifier change
     7
     8        Make sure the page does a style recalculation and possible rendering
     9        when navigating back from a page with an anchor to a page without
     10        an anchor.
     11
     12        * loader/FrameLoader.cpp:
     13        (WebCore::FrameLoader::gotoAnchor):
     14
    1152006-11-18  Don Gibson  <dgibson77@gmail.com>
    216
  • trunk/WebCore/loader/FrameLoader.cpp

    r17802 r17848  
    995995{
    996996    // If our URL has no ref, then we have no place we need to jump to.
    997     if (!m_URL.hasRef())
     997    // OTOH if css target was set previously, we want to set it to 0, recalc
     998    // and possibly repaint because :target pseudo class may have been
     999    // set(See bug 11321)
     1000    if (!m_URL.hasRef() &&
     1001        !(m_frame->document() && m_frame->document()->getCSSTarget()))
    9981002        return;
    9991003
Note: See TracChangeset for help on using the changeset viewer.