diff options
author | Cary Clark <cary@android.com> | 2010-02-17 17:04:56 -0500 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2010-02-17 17:04:56 -0500 |
commit | 41ca040d7db923a179953baf91f30d539df6b055 (patch) | |
tree | 7bd5f5cc09454747e654a480432ea8262740b599 /WebKit/android/nav/CachedRoot.h | |
parent | b68fe3b6cc6c889ab4dc79e773592df07b121279 (diff) | |
download | external_webkit-41ca040d7db923a179953baf91f30d539df6b055.zip external_webkit-41ca040d7db923a179953baf91f30d539df6b055.tar.gz external_webkit-41ca040d7db923a179953baf91f30d539df6b055.tar.bz2 |
minor fixes to layer nav
- get rid of the FloatPoint interface in LayerAndroid;
use (x, y) instead
- make CachedFrame a friend of CachedRoot and CacheBuilder
a friend of CachedNode so they alone can access private fields.
- assume the LayerAndroid picture can sometimes be null.
If it is, use the main page's picture instead.
http://b/2369549
Diffstat (limited to 'WebKit/android/nav/CachedRoot.h')
-rw-r--r-- | WebKit/android/nav/CachedRoot.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/WebKit/android/nav/CachedRoot.h b/WebKit/android/nav/CachedRoot.h index e4461d1..ae1530f 100644 --- a/WebKit/android/nav/CachedRoot.h +++ b/WebKit/android/nav/CachedRoot.h @@ -54,8 +54,6 @@ public: bool checkRings(SkPicture* , const WTF::Vector<WebCore::IntRect>& rings, const WebCore::IntRect& bounds) const; WebCore::IntPoint cursorLocation() const; - const WebCore::IntRect& cursorBounds() const { return mCursorBounds; } // should only be called by CachedFrame - const CachedNode* cursor() const { return mCursor; } // should only be called by CachedFrame int documentHeight() { return mContents.height(); } int documentWidth() { return mContents.width(); } void draw(FindCanvas& ) const; @@ -63,7 +61,6 @@ public: int* x, int* y, bool checkForHidden) const; const WebCore::IntRect& focusBounds() const { return mFocusBounds; } WebCore::IntPoint focusLocation() const; - SkPicture* getPicture() const { return mPicture; } // should only be called by CachedFrame int getAndResetSelectionEnd(); int getAndResetSelectionStart(); int getBlockLeftEdge(int x, int y, float scale) const; @@ -99,6 +96,7 @@ public: int textGeneration() const { return mTextGeneration; } int width() const { return mPicture ? mPicture->width() : 0; } private: + friend class CachedFrame; CachedHistory* mHistory; SkPicture* mPicture; WebCore::LayerAndroid* mRootLayer; |