diff options
author | Cary Clark <cary@android.com> | 2010-03-01 09:24:38 -0500 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2010-03-02 10:46:49 -0500 |
commit | 2e0b2223f6f6223fc09ce81529c611f2c032e38f (patch) | |
tree | 61ff3e60aa3682778c730cdd85415b16c121d9bf /WebCore/platform | |
parent | 51c22fe1544c725107ba905abf61b0735cc16652 (diff) | |
download | external_webkit-2e0b2223f6f6223fc09ce81529c611f2c032e38f.zip external_webkit-2e0b2223f6f6223fc09ce81529c611f2c032e38f.tar.gz external_webkit-2e0b2223f6f6223fc09ce81529c611f2c032e38f.tar.bz2 |
allow anchor containing layer to be mapped to navable layer
A layer may be inside or outside of an anchor. If it is inside,
the corresponding CachedNode has already been created, but is
being tracked. These tracked nodes need their layer and unclipped
bits set. For now, node in layers are assumed to draw last in
their layer, and aren't obscured by other drawing.
We may allow nodes in layers to be obscured one day. Preparing
for that, translate the layer picture by its global position
when testing to see if the node is hidden.
Fix debugging by allowing CachedLayer to see inside LayerAndroid.
http://b/2453974
Diffstat (limited to 'WebCore/platform')
-rw-r--r-- | WebCore/platform/graphics/android/LayerAndroid.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/LayerAndroid.h b/WebCore/platform/graphics/android/LayerAndroid.h index 940c4d6..4faf27d 100644 --- a/WebCore/platform/graphics/android/LayerAndroid.h +++ b/WebCore/platform/graphics/android/LayerAndroid.h @@ -143,6 +143,9 @@ protected: virtual void onDraw(SkCanvas*, SkScalar opacity); private: +#if DUMP_NAV_CACHE + friend class CachedLayer::Debug; // debugging access only +#endif void bounds(SkRect* ) const; bool prepareContext(bool force = false); void clipInner(SkTDArray<SkRect>* region, const SkRect& local) const; |