OSDN Git Service

don't combine single image bitmaps
authorCary Clark <cary@android.com>
Mon, 14 Feb 2011 19:26:57 +0000 (14:26 -0500)
committerCary Clark <cary@android.com>
Mon, 14 Feb 2011 19:26:57 +0000 (14:26 -0500)
commit99a3d689283e80afdfb9e7711900dd9906f4c1f4
treecf96c198600efde0591b274d8f61769071e4ce19
parente5c90f700f64667817813fbb2e8478ddb7a6927b
don't combine single image bitmaps

Anchors and other links often contain multiple bitmaps, which must
be stitched together when analyzing the picture data to determine
if the anchor is fully visible, partially occluded, or fully hidden.
For instance, nine-patches in WebKit appear as adjacent bitmaps.

If a website design has two or more bitmaps adjacent to each other,
these may be mistakenly joined. By tracking whether the original
node contained exactly one img element, combining bitmaps based
on their location is avoided unncessarily.

bug:3373743
Change-Id: I5bcbdaec3097a2b839ee2444e512a0def6a016d0
WebKit/android/nav/CacheBuilder.cpp
WebKit/android/nav/CacheBuilder.h
WebKit/android/nav/CachedFrame.cpp
WebKit/android/nav/CachedFrame.h
WebKit/android/nav/CachedNode.cpp
WebKit/android/nav/CachedNode.h
WebKit/android/nav/CachedRoot.cpp
WebKit/android/nav/CachedRoot.h