summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/line-overflow.html
diff options
context:
space:
mode:
authorap <ap@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2006-07-24 16:55:02 +0000
committerap <ap@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2006-07-24 16:55:02 +0000
commite599e2af7277587b90f72b8d3bbf83728422fe83 (patch)
tree7c750ae3b2298d7b16b3d4a860ff406736e4ba08 /third_party/WebKit/LayoutTests/fast/repaint/line-overflow.html
parent98c657427dd9b566476a80232026a124d2e8cc69 (diff)
downloadchromium_src-e599e2af7277587b90f72b8d3bbf83728422fe83.zip
chromium_src-e599e2af7277587b90f72b8d3bbf83728422fe83.tar.gz
chromium_src-e599e2af7277587b90f72b8d3bbf83728422fe83.tar.bz2
Fix by Mitz Pettel, reviewed by Hyatt.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9669 Incomplete repaint when changing an inline's border Test: fast/repaint/line-overflow.html * rendering/RenderBlock.h: * rendering/bidi.cpp: (WebCore::RenderBlock::layoutInlineChildren): Added repaintTop and repaintBottom variables to track the vertical edges of the area that changed, accounting for lines that were deleted, inserted or moved. Removed unnecessary updating of m_overflowHeight. (WebCore::RenderBlock::determineStartPosition): Removed unnecessary updating of m_overflowHeight. (WebCore::RenderBlock::determineEndPosition): (WebCore::RenderBlock::matchedEndLine): Added repaintTop and repaintBottom arguments, which this method updates to account for deleted lines. (WebCore::RenderBlock::checkLinesForOverflow): Removed outdated FIXME. git-svn-id: svn://svn.chromium.org/blink/trunk@15602 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/repaint/line-overflow.html')
-rw-r--r--third_party/WebKit/LayoutTests/fast/repaint/line-overflow.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/line-overflow.html b/third_party/WebKit/LayoutTests/fast/repaint/line-overflow.html
new file mode 100644
index 0000000..30e65d0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/repaint/line-overflow.html
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="en">
+<head>
+ <script src="repaint.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ function repaintTest()
+ {
+ var target = document.getElementById('t');
+ target.style.borderTop = "30px solid blue";
+ target.style.margin = "0";
+ }
+ </script>
+ <style type="text/css">
+ span#t { margin: 30px; }
+ </style>
+</head>
+<body onload="runRepaintTest();">
+ <p>
+ This is a test for <i><a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=9669">http://bugzilla.opendarwin.org/show_bug.cgi?id=9669</a>
+ Incomplete repaint when changing an inline's border</i>.
+ </p>
+ <hr>
+ <div style="width: 200px; height: 200px;">
+ Cras faucibus. Nunc adipiscing, enim in scelerisque convallis,
+ augue <span id="t">purus</span> eleifend lacus, at sagittis eros leo pulvinar velit. Integer sollicitudin nisi ut urna blandit convallis.
+ </div>
+</body>