summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WebCore/rendering/RenderBlockLineLayout.cpp4
-rw-r--r--WebKit/android/jni/WebViewCore.cpp2
-rw-r--r--WebKit/android/nav/CacheBuilder.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/rendering/RenderBlockLineLayout.cpp b/WebCore/rendering/RenderBlockLineLayout.cpp
index 3c1ab60..878d1ab 100644
--- a/WebCore/rendering/RenderBlockLineLayout.cpp
+++ b/WebCore/rendering/RenderBlockLineLayout.cpp
@@ -655,8 +655,8 @@ void RenderBlock::layoutInlineChildren(bool relayoutChildren, int& repaintLogica
// be a tab. Pick 25 for now as it covers around 160px
// (half of 320px) with the default font.
if (length > 25 || (length > 3 &&
- (!node->parentNode()->hasTagName(HTMLNames::aTag) &&
- !node->parentNode()->hasTagName(HTMLNames::liTag))))
+ (!node->parent()->hasTagName(HTMLNames::aTag) &&
+ !node->parent()->hasTagName(HTMLNames::liTag))))
hasTextToWrap = true;
}
}
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp
index e391148..d5d2bb8 100644
--- a/WebKit/android/jni/WebViewCore.cpp
+++ b/WebKit/android/jni/WebViewCore.cpp
@@ -1220,7 +1220,7 @@ void WebViewCore::setSizeScreenWidthAndScale(int width, int height,
// in the html. If it is the HitTestResult, it may have zero
// width and height. In this case, use its parent node.
if (bounds.width() == 0) {
- node = node->parentNode();
+ node = node->parent();
if (node) {
bounds = node->getRect();
DBG_NAV_LOGD("found a zero width node and use its parent, whose ob:(x=%d,y=%d,w=%d,h=%d)",
diff --git a/WebKit/android/nav/CacheBuilder.cpp b/WebKit/android/nav/CacheBuilder.cpp
index 61e5f46..ea436e7 100644
--- a/WebKit/android/nav/CacheBuilder.cpp
+++ b/WebKit/android/nav/CacheBuilder.cpp
@@ -1171,7 +1171,7 @@ void CacheBuilder::BuildFrame(Frame* root, Frame* frame,
goto keepNode;
}
// Only use the root contentEditable element
- if (node->isContentEditable() && !node->parentNode()->isContentEditable()) {
+ if (node->isContentEditable() && !node->parent()->isContentEditable()) {
bounds = absBounds;
takesFocus = true;
type = CONTENT_EDITABLE_CACHEDNODETYPE;