OSDN Git Service
(root)
/
android-x86
/
external-webkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c6a7a3
)
Automated import from //branches/donutburger/...@140474,140474
author
Grace Kloba
<>
Wed, 25 Mar 2009 00:43:55 +0000
(17:43 -0700)
committer
The Android Open Source Project
<initial-contribution@android.com>
Wed, 25 Mar 2009 00:43:55 +0000
(17:43 -0700)
WebCore/rendering/bidi.cpp
patch
|
blob
|
history
diff --git
a/WebCore/rendering/bidi.cpp
b/WebCore/rendering/bidi.cpp
index
212bf3c
..
accb326
100644
(file)
--- a/
WebCore/rendering/bidi.cpp
+++ b/
WebCore/rendering/bidi.cpp
@@
-903,8
+903,9
@@
void RenderBlock::layoutInlineChildren(bool relayoutChildren, int& repaintTop, i
obj = obj->container();
}
if (!isConstrained) {
- int maxWidth = view()->frameView()->screenWidth() - 2 * ANDROID_FCTS_MARGIN_PADDING;
- if (maxWidth > 0) {
+ int screenWidth = view()->frameView()->screenWidth();
+ if (screenWidth > 0 && width() > screenWidth) {
+ int maxWidth = screenWidth - 2 * ANDROID_FCTS_MARGIN_PADDING;
setWidth(min(width(), maxWidth));
m_minPrefWidth = min(m_minPrefWidth, maxWidth);
m_maxPrefWidth = min(m_maxPrefWidth, maxWidth);