Changeset 169199 in webkit
- Timestamp:
- May 22, 2014, 6:05:20 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r169197 r169199 1 2014-05-22 Antti Koivisto <antti@apple.com> 2 3 Text markers don't paint on simple lines 4 https://bugs.webkit.org/show_bug.cgi?id=133177 5 6 Reviewed by Anders Carlsson. 7 8 * fast/text/mark-matches-rendering-expected.html: Added. 9 * fast/text/mark-matches-rendering-simple-lines-expected.html: Added. 10 * fast/text/mark-matches-rendering-simple-lines.html: Added. 11 * fast/text/mark-matches-rendering.html: Added. 12 1 13 2014-05-22 Javier Fernandez <jfernandez@igalia.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r169195 r169199 1 2014-05-22 Antti Koivisto <antti@apple.com> 2 3 Text markers don't paint on simple lines 4 https://bugs.webkit.org/show_bug.cgi?id=133177 5 6 Reviewed by Anders Carlsson. 7 8 Marker painting code does not yet support simple lines. 9 10 Tests: fast/text/mark-matches-rendering-simple-lines.html 11 fast/text/mark-matches-rendering.html 12 13 * dom/DocumentMarkerController.cpp: 14 (WebCore::DocumentMarkerController::addMarker): 15 16 Force text blocks with markers to use line boxes. 17 18 * testing/Internals.cpp: 19 (WebCore::Internals::setMarkedTextMatchesAreHighlighted): 20 21 Expose this so we can make reftests for marker rendering. 22 23 * testing/Internals.h: 24 * testing/Internals.idl: 25 1 26 2014-05-22 Manuel Rego Casasnovas <rego@igalia.com> 2 27 -
trunk/Source/WebCore/dom/DocumentMarkerController.cpp
r164420 r169199 30 30 #include "NodeTraversal.h" 31 31 #include "Range.h" 32 #include "RenderObject.h" 32 #include "RenderBlockFlow.h" 33 #include "RenderText.h" 33 34 #include "RenderedDocumentMarker.h" 34 35 #include "TextIterator.h" … … 166 167 if (newMarker.endOffset() == newMarker.startOffset()) 167 168 return; 169 170 if (auto* renderer = node->renderer()) { 171 // FIXME: Factor the marker painting code out of InlineTextBox and teach simple line layout to use it. 172 if (renderer->isText()) 173 toRenderText(*renderer).ensureLineBoxes(); 174 else if (renderer->isRenderBlockFlow()) 175 toRenderBlockFlow(*renderer).ensureLineBoxes(); 176 } 168 177 169 178 m_possiblyExistingMarkerTypes.add(newMarker.type()); -
trunk/Source/WebCore/testing/Internals.cpp
r168843 r169199 802 802 } 803 803 804 void Internals::setMarkedTextMatchesAreHighlighted(bool flag, ExceptionCode& ec) 805 { 806 Document* document = contextDocument(); 807 if (!document || !document->frame()) { 808 ec = INVALID_ACCESS_ERR; 809 return; 810 } 811 document->frame()->editor().setMarkedTextMatchesAreHighlighted(flag); 812 } 813 804 814 void Internals::setScrollViewPosition(long x, long y, ExceptionCode& ec) 805 815 { -
trunk/Source/WebCore/testing/Internals.h
r168843 r169199 131 131 String markerDescriptionForNode(Node*, const String& markerType, unsigned index, ExceptionCode&); 132 132 void addTextMatchMarker(const Range*, bool isActive); 133 void setMarkedTextMatchesAreHighlighted(bool, ExceptionCode&); 133 134 134 135 void setScrollViewPosition(long x, long y, ExceptionCode&); -
trunk/Source/WebCore/testing/Internals.idl
r168843 r169199 82 82 [RaisesException] DOMString markerDescriptionForNode(Node node, DOMString markerType, unsigned long index); 83 83 void addTextMatchMarker(Range range, boolean isActive); 84 [RaisesException] void setMarkedTextMatchesAreHighlighted(boolean flag); 84 85 85 86 [RaisesException] void setScrollViewPosition(long x, long y);
Note:
See TracChangeset
for help on using the changeset viewer.