Changeset 92059 in webkit
- Timestamp:
- Jul 30, 2011 4:51:31 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r92051 r92059 1 2011-07-30 Enrica Casucci <enrica@apple.com> 2 3 REGRESSION: culledInlineAbsoluteRects needs to translate a 0,0 point to absolute 4 coordinates so that the top left position is accurate. 5 https://bugs.webkit.org/show_bug.cgi?id=65419 6 <rdar://problem/9408862> 7 8 Reviewed by Dan Bernstein. 9 10 * fast/inline/skipped-whitespace-boundingBox-expected.txt: Added. 11 * fast/inline/skipped-whitespace-boundingBox.html: Added. 12 1 13 2011-07-26 Pavel Podivilov <podivilov@chromium.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r92051 r92059 1 2011-07-30 Enrica Casucci <enrica@apple.com> 2 3 REGRESSION: culledInlineAbsoluteRects needs to translate a 0,0 point to absolute 4 coordinates so that the top left position is accurate. 5 https://bugs.webkit.org/show_bug.cgi?id=65419 6 <rdar://problem/9408862> 7 8 This patch fixes a regression introduced in r83075. 9 Make sure that culledInlineAbsoluteRects still does 10 a translation of a 0,0 point to absolute coordinates so that the top left position is 11 accurate. 12 This code path could not be tested via JavaScript. The patch 13 extends the Internals object to be able to test this case. 14 15 Reviewed by Dan Bernstein. 16 17 Test: fast/inline/skipped-whitespace-boundingBox.html 18 19 * WebCore.exp.in: Added some exports. 20 * rendering/RenderInline.cpp: 21 (WebCore::RenderInline::culledInlineAbsoluteRects): 22 * testing/Internals.cpp: 23 (WebCore::Internals::boundingBox): 24 * testing/Internals.h: 25 * testing/Internals.idl: 26 1 27 2011-07-26 Pavel Podivilov <podivilov@chromium.org> 2 28 -
trunk/Source/WebCore/WebCore.exp.in
r92014 r92059 153 153 __ZN7WebCore10setCookiesEPNS_8DocumentERKNS_4KURLERKN3WTF6StringE 154 154 __ZN7WebCore10toDocumentEN3JSC7JSValueE 155 __ZN7WebCore10ClientRectC1Ev 156 __ZN7WebCore10ClientRectC1ERKNS_7IntRectE 157 __ZN7WebCore4toJSEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEPNS_10ClientRectE 155 158 __ZN7WebCore11BitmapImageC1EP7CGImagePNS_13ImageObserverE 156 159 __ZN7WebCore11CachedFrame23cachedFramePlatformDataEv … … 281 284 __ZN7WebCore12PrintContextD1Ev 282 285 __ZN7WebCore12RenderObject16repaintRectangleERKNS_7IntRectEb 286 __ZN7WebCore12RenderObject23absoluteBoundingBoxRectEb 283 287 __ZN7WebCore12RenderWidget19showSubstituteImageEN3WTF10PassRefPtrINS_5ImageEEE 284 288 __ZN7WebCore12RenderWidget28resumeWidgetHierarchyUpdatesEv -
trunk/Source/WebCore/rendering/RenderInline.cpp
r91907 r92059 487 487 void RenderInline::culledInlineAbsoluteRects(const RenderInline* container, Vector<IntRect>& rects, const IntSize& offset) 488 488 { 489 if (!culledInlineFirstLineBox()) { 490 rects.append(IntRect(offset.width(), offset.height(), 0, 0)); 491 return; 492 } 493 489 494 bool isHorizontal = style()->isHorizontalWritingMode(); 490 495 for (RenderObject* curr = firstChild(); curr; curr = curr->nextSibling()) { -
trunk/Source/WebCore/testing/Internals.cpp
r91235 r92059 28 28 29 29 #include "CachedResourceLoader.h" 30 #include "ClientRect.h" 30 31 #include "Document.h" 31 32 #include "Element.h" … … 34 35 #include "NodeRenderingContext.h" 35 36 #include "Page.h" 37 #include "RenderObject.h" 36 38 #include "RenderTreeAsText.h" 37 39 #include "ShadowContentElement.h" … … 148 150 #endif 149 151 152 PassRefPtr<ClientRect> Internals::boundingBox(Element* element, ExceptionCode& ec) 153 { 154 if (!element) { 155 ec = INVALID_ACCESS_ERR; 156 return ClientRect::create(); 157 } 158 159 element->document()->updateLayoutIgnorePendingStylesheets(); 160 RenderObject* renderer = element->renderer(); 161 if (!renderer) 162 return ClientRect::create(); 163 return ClientRect::create(renderer->absoluteBoundingBoxRect()); 150 164 } 165 166 } -
trunk/Source/WebCore/testing/Internals.h
r91235 r92059 35 35 namespace WebCore { 36 36 37 class ClientRect; 37 38 class Document; 38 39 class Element; … … 61 62 #endif 62 63 64 PassRefPtr<ClientRect> boundingBox(Element*, ExceptionCode&); 65 63 66 private: 64 67 Internals(); -
trunk/Source/WebCore/testing/Internals.idl
r91235 r92059 39 39 40 40 void setInspectorResourcesDataSizeLimits(in Document document, in long maximumResourcesContentSize, in long maximumSingleResourceContentSize) raises(DOMException); 41 42 ClientRect boundingBox(in Element element) raises(DOMException); 41 43 }; 42 44 }
Note: See TracChangeset
for help on using the changeset viewer.