summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav/CachedFrame.h
diff options
context:
space:
mode:
authorCary Clark <cary@android.com>2009-12-04 10:29:57 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-12-04 10:29:57 -0800
commit021228f27b1399df5a45f3f1e7f1f12126e86e3c (patch)
tree5e127bc6852405eb389fcc3779a9e10caf6dec9a /WebKit/android/nav/CachedFrame.h
parent460d4fa19ac597fe27cc530c2a1ce0ca459cef35 (diff)
parent1d330120b6c2ee2d3f1c25300d0e3d446ef8c640 (diff)
downloadexternal_webkit-021228f27b1399df5a45f3f1e7f1f12126e86e3c.zip
external_webkit-021228f27b1399df5a45f3f1e7f1f12126e86e3c.tar.gz
external_webkit-021228f27b1399df5a45f3f1e7f1f12126e86e3c.tar.bz2
am 1d330120: move input-related fields out of CachedNode to expand
Merge commit '1d330120b6c2ee2d3f1c25300d0e3d446ef8c640' into eclair-mr2-plus-aosp * commit '1d330120b6c2ee2d3f1c25300d0e3d446ef8c640': move input-related fields out of CachedNode to expand
Diffstat (limited to 'WebKit/android/nav/CachedFrame.h')
-rw-r--r--WebKit/android/nav/CachedFrame.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/WebKit/android/nav/CachedFrame.h b/WebKit/android/nav/CachedFrame.h
index 0062424..f0996f7 100644
--- a/WebKit/android/nav/CachedFrame.h
+++ b/WebKit/android/nav/CachedFrame.h
@@ -26,6 +26,7 @@
#ifndef CachedFrame_H
#define CachedFrame_H
+#include "CachedInput.h"
#include "CachedNode.h"
#include "IntRect.h"
#include "SkFixed.h"
@@ -66,6 +67,7 @@ public:
CURSOR_SET = 0
};
CachedFrame() {}
+ void add(CachedInput& input) { mCachedTextInputs.append(input); }
void add(CachedNode& node) { mCachedNodes.append(node); }
void addFrame(CachedFrame& child) { mCachedFrames.append(child); }
bool checkVisited(const CachedNode* , CachedFrame::Direction ) const;
@@ -123,6 +125,10 @@ public:
void setFocusIndex(int index) { mFocusIndex = index; }
void setLocalViewBounds(const WebCore::IntRect& bounds) { mLocalViewBounds = bounds; }
int size() { return mCachedNodes.size(); }
+ const CachedInput* textInput(const CachedNode* node) const {
+ return node->isTextInput() ? &mCachedTextInputs[node->textInputIndex()]
+ : 0;
+ }
const CachedNode* validDocument() const;
protected:
struct BestData {
@@ -206,6 +212,7 @@ protected:
WebCore::IntRect mViewBounds;
WTF::Vector<CachedNode> mCachedNodes;
WTF::Vector<CachedFrame> mCachedFrames;
+ WTF::Vector<CachedInput> mCachedTextInputs;
void* mFrame; // WebCore::Frame*, used only to compare pointers
CachedFrame* mParent;
int mCursorIndex;