Changeset 57663 in webkit


Ignore:
Timestamp:
Apr 15, 2010 12:33:59 PM (14 years ago)
Author:
tonikitoo@webkit.org
Message:

Spatial Navigation: make hasOffscreenRect() to earlier return 'true' if absoluteClippedOverflowRect() gives an empty rect
https://bugs.webkit.org/show_bug.cgi?id=37635

Reviewed by Simon Fraser.
Patch by Antonio Gomes <tonikitoo@webkit.org>

absoluteClippedOverflowRect method of RenderObject does return an empty IntRect for offscreen nodes.
So hasOffscreenRect method (SpatialNavigation.cpp) can safily bail out earlier in such cases.

  • page/SpatialNavigation.cpp:

(WebCore::hasOffscreenRect):

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57662 r57663  
     12010-04-14  Antonio Gomes  <tonikitoo@webkit.org>
     2
     3        Reviewed by Simon Fraser.
     4
     5        Spatial Navigation: make hasOffscreenRect() to earlier return 'true' if absoluteClippedOverflowRect() gives an empty rect
     6        https://bugs.webkit.org/show_bug.cgi?id=37635
     7
     8        absoluteClippedOverflowRect method of RenderObject does return an empty IntRect for offscreen nodes.
     9        So hasOffscreenRect method (SpatialNavigation.cpp) can safily bail out earlier in such cases.
     10
     11        * page/SpatialNavigation.cpp:
     12        (WebCore::hasOffscreenRect):
     13
    1142010-04-14  Antonio Gomes  <tonikitoo@webkit.org>
    215
  • trunk/WebCore/page/SpatialNavigation.cpp

    r57496 r57663  
    437437
    438438    IntRect rect(render->absoluteClippedOverflowRect());
     439    if (rect.isEmpty())
     440        return true;
     441
    439442    return !containerViewportRect.intersects(rect);
    440443}
Note: See TracChangeset for help on using the changeset viewer.