Changeset 268774 in webkit
- Timestamp:
- Oct 20, 2020, 4:58:03 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 29 edited
- 6 moved
-
LayoutTests/highlight/highlight-interfaces-expected.txt (modified) (2 diffs)
-
LayoutTests/highlight/highlight-interfaces.html (modified) (1 diff)
-
LayoutTests/highlight/highlight-map-and-group-expected.txt (modified) (1 diff)
-
LayoutTests/highlight/highlight-map-and-group.html (modified) (1 diff)
-
LayoutTests/highlight/resources/highlight-frame.html (modified) (1 diff)
-
LayoutTests/http/wpt/css/css-highlight-api/highlight-image.html (modified) (1 diff)
-
LayoutTests/http/wpt/css/css-highlight-api/highlight-text-across-elements.html (modified) (1 diff)
-
LayoutTests/http/wpt/css/css-highlight-api/highlight-text-cascade.html (modified) (1 diff)
-
LayoutTests/http/wpt/css/css-highlight-api/highlight-text-decorations.html (modified) (1 diff)
-
LayoutTests/http/wpt/css/css-highlight-api/highlight-text-repaint.html (modified) (2 diffs)
-
LayoutTests/http/wpt/css/css-highlight-api/highlight-text-replace.html (modified) (1 diff)
-
LayoutTests/http/wpt/css/css-highlight-api/highlight-text.html (modified) (1 diff)
-
Source/WebCore/CMakeLists.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/DerivedSources-input.xcfilelist (modified) (1 diff)
-
Source/WebCore/DerivedSources-output.xcfilelist (modified) (1 diff)
-
Source/WebCore/DerivedSources.make (modified) (1 diff)
-
Source/WebCore/Modules/highlight/Highlight.cpp (moved) (moved from trunk/Source/WebCore/Modules/highlight/HighlightRangeGroup.cpp ) (8 diffs)
-
Source/WebCore/Modules/highlight/Highlight.h (moved) (moved from trunk/Source/WebCore/Modules/highlight/HighlightRangeGroup.h ) (3 diffs)
-
Source/WebCore/Modules/highlight/Highlight.idl (moved) (moved from trunk/Source/WebCore/Modules/highlight/HighlightRangeGroup.idl ) (1 diff)
-
Source/WebCore/Modules/highlight/HighlightRegister.cpp (moved) (moved from trunk/Source/WebCore/Modules/highlight/HighlightMap.cpp ) (2 diffs)
-
Source/WebCore/Modules/highlight/HighlightRegister.h (moved) (moved from trunk/Source/WebCore/Modules/highlight/HighlightMap.h ) (3 diffs)
-
Source/WebCore/Modules/highlight/HighlightRegister.idl (moved) (moved from trunk/Source/WebCore/Modules/highlight/HighlightMap.idl ) (1 diff)
-
Source/WebCore/Sources.txt (modified) (2 diffs)
-
Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (2 diffs)
-
Source/WebCore/bindings/js/WebCoreBuiltinNames.h (modified) (1 diff)
-
Source/WebCore/css/DOMCSSNamespace.cpp (modified) (2 diffs)
-
Source/WebCore/css/DOMCSSNamespace.h (modified) (2 diffs)
-
Source/WebCore/css/DOMCSSNamespace.idl (modified) (1 diff)
-
Source/WebCore/dom/Document.cpp (modified) (4 diffs)
-
Source/WebCore/dom/Document.h (modified) (3 diffs)
-
Source/WebCore/rendering/HighlightData.cpp (modified) (1 diff)
-
Source/WebCore/rendering/InlineTextBox.cpp (modified) (2 diffs)
-
Source/WebCore/rendering/RenderReplaced.cpp (modified) (2 diffs)
-
Source/WebCore/rendering/SelectionRangeData.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/highlight/highlight-interfaces-expected.txt
r253153 r268774 1 Tests the interfaces of the highlight API, which include Highlight RangeGroup, HighlightMap, and extensions to the CSS namespace.1 Tests the interfaces of the highlight API, which include Highlight, HighlightRegister, and extensions to the CSS namespace. 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". … … 5 5 6 6 Testing Highlight: 7 PASS Highlight RangeGroupinstanceof Function is true8 PASS typeof Highlight RangeGroupis "function"9 PASS new Highlight RangeGroup(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2})) instanceof HighlightRangeGroupis true10 PASS Highlight Mapinstanceof Function is true11 PASS typeof Highlight Mapis "function"12 PASS new Highlight Map() instanceof HighlightMapis true13 PASS new Highlight Map().set("foo-styling",new HighlightRangeGroup(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2}))) is defined.7 PASS Highlight instanceof Function is true 8 PASS typeof Highlight is "function" 9 PASS new Highlight(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2})) instanceof Highlight is true 10 PASS HighlightRegister instanceof Function is true 11 PASS typeof HighlightRegister is "function" 12 PASS new HighlightRegister() instanceof HighlightRegister is true 13 PASS new HighlightRegister().set("foo-styling",new Highlight(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2}))) is defined. 14 14 PASS CSS.highlights is defined. 15 PASS CSS.highlights.set("foo-styling",new Highlight RangeGroup(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2}))) is CSS.highlights15 PASS CSS.highlights.set("foo-styling",new Highlight(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2}))) is CSS.highlights 16 16 PASS successfullyParsed is true 17 17 -
trunk/LayoutTests/highlight/highlight-interfaces.html
r253153 r268774 5 5 <script> 6 6 7 description("Tests the interfaces of the highlight API, which include Highlight RangeGroup, HighlightMap, and extensions to the CSS namespace.");7 description("Tests the interfaces of the highlight API, which include Highlight, HighlightRegister, and extensions to the CSS namespace."); 8 8 9 9 debug("Testing Highlight:"); 10 shouldBeTrue("Highlight RangeGroupinstanceof Function");11 shouldBeEqualToString("typeof Highlight RangeGroup", "function");12 shouldBeTrue("new Highlight RangeGroup(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2})) instanceof HighlightRangeGroup");13 shouldBeTrue("Highlight Mapinstanceof Function");14 shouldBeEqualToString("typeof Highlight Map", "function");15 shouldBeTrue("new Highlight Map() instanceof HighlightMap");16 shouldBeDefined('new Highlight Map().set("foo-styling",new HighlightRangeGroup(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2})))');10 shouldBeTrue("Highlight instanceof Function"); 11 shouldBeEqualToString("typeof Highlight", "function"); 12 shouldBeTrue("new Highlight(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2})) instanceof Highlight"); 13 shouldBeTrue("HighlightRegister instanceof Function"); 14 shouldBeEqualToString("typeof HighlightRegister", "function"); 15 shouldBeTrue("new HighlightRegister() instanceof HighlightRegister"); 16 shouldBeDefined('new HighlightRegister().set("foo-styling",new Highlight(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2})))'); 17 17 shouldBeDefined('CSS.highlights'); 18 shouldBe('CSS.highlights.set("foo-styling",new Highlight RangeGroup(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2})))', 'CSS.highlights');18 shouldBe('CSS.highlights.set("foo-styling",new Highlight(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2})))', 'CSS.highlights'); 19 19 20 20 </script> -
trunk/LayoutTests/highlight/highlight-map-and-group-expected.txt
r253309 r268774 1 PASS highlight RangeGroup1.size is 12 PASS highlight RangeGroup2.size is 23 PASS highlight RangeGroup3.size is 31 PASS highlight1.size is 1 2 PASS highlight2.size is 2 3 PASS highlight3.size is 3 4 4 PASS CSS.highlights.size is 3 5 5 PASS CSS.highlights.has("example-highlight1") is true -
trunk/LayoutTests/highlight/highlight-map-and-group.html
r253309 r268774 21 21 22 22 <script> 23 let highlight RangeGroup1 = new HighlightRangeGroup(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2}));23 let highlight1 = new Highlight(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2})); 24 24 25 let highlight RangeGroup2 = new HighlightRangeGroup(new StaticRange({startContainer: document.body, startOffset: 2, endContainer: document.body, endOffset: 3}));26 highlight RangeGroup2.add(new StaticRange({startContainer: document.body, startOffset: 4, endContainer: document.body, endOffset: 5}));25 let highlight2 = new Highlight(new StaticRange({startContainer: document.body, startOffset: 2, endContainer: document.body, endOffset: 3})); 26 highlight2.add(new StaticRange({startContainer: document.body, startOffset: 4, endContainer: document.body, endOffset: 5})); 27 27 28 let highlight RangeGroup3 = new HighlightRangeGroup(new StaticRange({startContainer: document.body, startOffset: 4, endContainer: document.body, endOffset: 8}));29 highlight RangeGroup3.add(new StaticRange({startContainer: document.body, startOffset: 10, endContainer: document.body, endOffset: 12}));30 highlight RangeGroup3.add(new StaticRange({startContainer: document.body, startOffset: 5, endContainer: document.body, endOffset: 6}));28 let highlight3 = new Highlight(new StaticRange({startContainer: document.body, startOffset: 4, endContainer: document.body, endOffset: 8})); 29 highlight3.add(new StaticRange({startContainer: document.body, startOffset: 10, endContainer: document.body, endOffset: 12})); 30 highlight3.add(new StaticRange({startContainer: document.body, startOffset: 5, endContainer: document.body, endOffset: 6})); 31 31 32 32 33 CSS.highlights.set("example-highlight1", highlight RangeGroup1);34 CSS.highlights.set("example-highlight2", highlight RangeGroup2);35 CSS.highlights.set("example-highlight3", highlight RangeGroup3);33 CSS.highlights.set("example-highlight1", highlight1); 34 CSS.highlights.set("example-highlight2", highlight2); 35 CSS.highlights.set("example-highlight3", highlight3); 36 36 37 shouldBe("highlight RangeGroup1.size","1");38 shouldBe("highlight RangeGroup2.size","2");39 shouldBe("highlight RangeGroup3.size","3");37 shouldBe("highlight1.size","1"); 38 shouldBe("highlight2.size","2"); 39 shouldBe("highlight3.size","3"); 40 40 41 41 shouldBe("CSS.highlights.size","3"); -
trunk/LayoutTests/highlight/resources/highlight-frame.html
r254785 r268774 14 14 <script> 15 15 let highlight = document.getElementById('highlight'); 16 let highlight RangeGroup = new HighlightRangeGroup(new StaticRange({startContainer: highlight.childNodes[0], startOffset: 0, endContainer: highlight.childNodes[0], endOffset: 4}));17 CSS.highlights.set("example", highlight RangeGroup);16 let highlight1 = new Highlight(new StaticRange({startContainer: highlight.childNodes[0], startOffset: 0, endContainer: highlight.childNodes[0], endOffset: 4})); 17 CSS.highlights.set("example", highlight1); 18 18 </script> -
trunk/LayoutTests/http/wpt/css/css-highlight-api/highlight-image.html
r268436 r268774 19 19 <script> 20 20 let imageElement1 = document.getElementById('img1'); 21 let highlight RangeGroup1 = new HighlightRangeGroup(new StaticRange({startContainer: imageElement1.childNodes[0], startOffset: 0, endContainer: imageElement1.childNodes[0], endOffset: 1}));21 let highlight1 = new Highlight(new StaticRange({startContainer: imageElement1.childNodes[0], startOffset: 0, endContainer: imageElement1.childNodes[0], endOffset: 1})); 22 22 23 23 24 CSS.highlights.set("example-highlight1", highlight RangeGroup1);24 CSS.highlights.set("example-highlight1", highlight1); 25 25 26 26 </script> -
trunk/LayoutTests/http/wpt/css/css-highlight-api/highlight-text-across-elements.html
r254785 r268774 35 35 let textElement4 = document.getElementById('text4'); 36 36 let textElement5 = document.getElementById('text5'); 37 let highlight RangeGroup1 = new HighlightRangeGroup(new StaticRange({startContainer: textElement1.childNodes[0], startOffset: 4, endContainer: textElement1.childNodes[0], endOffset: 7}));37 let highlight1 = new Highlight(new StaticRange({startContainer: textElement1.childNodes[0], startOffset: 4, endContainer: textElement1.childNodes[0], endOffset: 7})); 38 38 39 let highlight RangeGroup2 = new HighlightRangeGroup(new StaticRange({startContainer: textElement1.childNodes[0], startOffset: 10, endContainer: textElement2.childNodes[0], endOffset: 4}));40 highlight RangeGroup2.add(new StaticRange({startContainer: textElement2.childNodes[0], startOffset: 10, endContainer: textElement3.childNodes[0], endOffset: 5}));39 let highlight2 = new Highlight(new StaticRange({startContainer: textElement1.childNodes[0], startOffset: 10, endContainer: textElement2.childNodes[0], endOffset: 4})); 40 highlight2.add(new StaticRange({startContainer: textElement2.childNodes[0], startOffset: 10, endContainer: textElement3.childNodes[0], endOffset: 5})); 41 41 42 let highlight RangeGroup3 = new HighlightRangeGroup(new StaticRange({startContainer: textElement3.childNodes[0], startOffset: 10, endContainer: textElement5.childNodes[0], endOffset: 12}));42 let highlight3 = new Highlight(new StaticRange({startContainer: textElement3.childNodes[0], startOffset: 10, endContainer: textElement5.childNodes[0], endOffset: 12})); 43 43 44 CSS.highlights.set("example-highlight1", highlight RangeGroup1);45 CSS.highlights.set("example-highlight2", highlight RangeGroup2);46 CSS.highlights.set("example-highlight3", highlight RangeGroup3);44 CSS.highlights.set("example-highlight1", highlight1); 45 CSS.highlights.set("example-highlight2", highlight2); 46 CSS.highlights.set("example-highlight3", highlight3); 47 47 </script> 48 48 </body> -
trunk/LayoutTests/http/wpt/css/css-highlight-api/highlight-text-cascade.html
r254785 r268774 27 27 let textElement2 = document.getElementById('text2'); 28 28 let textElement3 = document.getElementById('text3'); 29 let highlight RangeGroup = new HighlightRangeGroup(new StaticRange({startContainer: textElement1.childNodes[0], startOffset: 0, endContainer: textElement1.childNodes[0], endOffset: 3}));30 highlight RangeGroup.add(new StaticRange({startContainer: textElement2.childNodes[0], startOffset: 5, endContainer: textElement2.childNodes[0], endOffset: 9}));29 let highlight = new Highlight(new StaticRange({startContainer: textElement1.childNodes[0], startOffset: 0, endContainer: textElement1.childNodes[0], endOffset: 3})); 30 highlight.add(new StaticRange({startContainer: textElement2.childNodes[0], startOffset: 5, endContainer: textElement2.childNodes[0], endOffset: 9})); 31 31 32 CSS.highlights.set("example-highlight", highlight RangeGroup);32 CSS.highlights.set("example-highlight", highlight); 33 33 </script> 34 34 </body> -
trunk/LayoutTests/http/wpt/css/css-highlight-api/highlight-text-decorations.html
r256451 r268774 52 52 <script> 53 53 let textElement = document.getElementById('text1'); 54 let highlight RangeGroup1 = new HighlightRangeGroup(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 1, endContainer: textElement.childNodes[0], endOffset: 2}));55 let highlight RangeGroup2 = new HighlightRangeGroup(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 5, endContainer: textElement.childNodes[0], endOffset: 6}));56 let highlight RangeGroup3 = new HighlightRangeGroup(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 10, endContainer: textElement.childNodes[0], endOffset: 13}));54 let highlight1 = new Highlight(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 1, endContainer: textElement.childNodes[0], endOffset: 2})); 55 let highlight2 = new Highlight(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 5, endContainer: textElement.childNodes[0], endOffset: 6})); 56 let highlight3 = new Highlight(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 10, endContainer: textElement.childNodes[0], endOffset: 13})); 57 57 58 CSS.highlights.set("example-highlight1", highlight RangeGroup1);59 CSS.highlights.set("example-highlight2", highlight RangeGroup2);60 CSS.highlights.set("example-highlight3", highlight RangeGroup3);58 CSS.highlights.set("example-highlight1", highlight1); 59 CSS.highlights.set("example-highlight2", highlight2); 60 CSS.highlights.set("example-highlight3", highlight3); 61 61 </script> 62 62 </body> -
trunk/LayoutTests/http/wpt/css/css-highlight-api/highlight-text-repaint.html
r267863 r268774 6 6 <link rel="help" href="https://drafts.csswg.org/css-highlight-api-1/#creating-highlights"> 7 7 <link rel="match" href="highlight-text-expected.html"> 8 <meta name="assert" content="Highlight Ranges should be able to be added and removed from the Highlight RangeGroup.">8 <meta name="assert" content="Highlight Ranges should be able to be added and removed from the Highlight."> 9 9 <style> 10 10 ::highlight(example-highlight) { … … 43 43 let range3 = new StaticRange({startContainer: textElement.childNodes[0], startOffset: 8, endContainer: textElement.childNodes[0], endOffset: 12}); 44 44 45 let highlight RangeGroup1 = new HighlightRangeGroup(range1);46 CSS.highlights.set("example-highlight", highlight RangeGroup1);45 let highlight1 = new Highlight(range1); 46 CSS.highlights.set("example-highlight", highlight1); 47 47 48 highlight RangeGroup1.add(range2);49 highlight RangeGroup1.delete(range1);50 highlight RangeGroup1.add(range3);48 highlight1.add(range2); 49 highlight1.delete(range1); 50 highlight1.add(range3); 51 51 52 52 var repaintRects = window.internals.repaintRectsAsText(); -
trunk/LayoutTests/http/wpt/css/css-highlight-api/highlight-text-replace.html
r254785 r268774 19 19 <script> 20 20 let textElement = document.getElementById('text1'); 21 let highlight RangeGroup1 = new HighlightRangeGroup(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 1, endContainer: textElement.childNodes[0], endOffset: 2}));21 let highlight1 = new Highlight(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 1, endContainer: textElement.childNodes[0], endOffset: 2})); 22 22 23 let highlight RangeGroup2 = new HighlightRangeGroup(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 3, endContainer: textElement.childNodes[0], endOffset: 4}));24 highlight RangeGroup2.add(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 5, endContainer: textElement.childNodes[0], endOffset: 6}));23 let highlight2 = new Highlight(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 3, endContainer: textElement.childNodes[0], endOffset: 4})); 24 highlight2.add(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 5, endContainer: textElement.childNodes[0], endOffset: 6})); 25 25 26 CSS.highlights.set("example-highlight", highlight RangeGroup1);27 CSS.highlights.set("example-highlight", highlight RangeGroup2);26 CSS.highlights.set("example-highlight", highlight1); 27 CSS.highlights.set("example-highlight", highlight2); 28 28 </script> 29 29 </body> -
trunk/LayoutTests/http/wpt/css/css-highlight-api/highlight-text.html
r254785 r268774 27 27 <script> 28 28 let textElement = document.getElementById('text1'); 29 let highlight RangeGroup1 = new HighlightRangeGroup(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 1, endContainer: textElement.childNodes[0], endOffset: 2}));29 let highlight1 = new Highlight(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 1, endContainer: textElement.childNodes[0], endOffset: 2})); 30 30 31 let highlight RangeGroup2 = new HighlightRangeGroup(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 3, endContainer: textElement.childNodes[0], endOffset: 4}));32 highlight RangeGroup2.add(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 5, endContainer: textElement.childNodes[0], endOffset: 6}));31 let highlight2 = new Highlight(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 3, endContainer: textElement.childNodes[0], endOffset: 4})); 32 highlight2.add(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 5, endContainer: textElement.childNodes[0], endOffset: 6})); 33 33 34 let highlight RangeGroup3 = new HighlightRangeGroup(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 7, endContainer: textElement.childNodes[0], endOffset: 8}));35 highlight RangeGroup3.add(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 9, endContainer: textElement.childNodes[0], endOffset: 10}));36 highlight RangeGroup3.add(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 12, endContainer: textElement.childNodes[0], endOffset: 13}));34 let highlight3 = new Highlight(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 7, endContainer: textElement.childNodes[0], endOffset: 8})); 35 highlight3.add(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 9, endContainer: textElement.childNodes[0], endOffset: 10})); 36 highlight3.add(new StaticRange({startContainer: textElement.childNodes[0], startOffset: 12, endContainer: textElement.childNodes[0], endOffset: 13})); 37 37 38 38 39 CSS.highlights.set("example-highlight1", highlight RangeGroup1);40 CSS.highlights.set("example-highlight2", highlight RangeGroup2);41 CSS.highlights.set("example-highlight3", highlight RangeGroup3);39 CSS.highlights.set("example-highlight1", highlight1); 40 CSS.highlights.set("example-highlight2", highlight2); 41 CSS.highlights.set("example-highlight3", highlight3); 42 42 </script> 43 43 </body> -
trunk/Source/WebCore/CMakeLists.txt
r268762 r268774 291 291 Modules/geolocation/PositionOptions.idl 292 292 293 Modules/highlight/Highlight Map.idl294 Modules/highlight/HighlightR angeGroup.idl293 Modules/highlight/Highlight.idl 294 Modules/highlight/HighlightRegister.idl 295 295 296 296 Modules/indexeddb/DOMWindow+IndexedDatabase.idl -
trunk/Source/WebCore/ChangeLog
r268771 r268774 1 2020-10-20 Megan Gardner <megan_gardner@apple.com> 2 3 Rename HighlightMap to HighlightRegister and HighlightRangeGroup to Highlight to match current spec 4 https://bugs.webkit.org/show_bug.cgi?id=217919 5 6 Reviewed by Ryosuke Niwa. 7 8 No new tests, no new behavior, rename only. 9 https://drafts.csswg.org/css-highlight-api-1/ 10 11 * DerivedSources-input.xcfilelist: 12 * DerivedSources-output.xcfilelist: 13 * DerivedSources.make: 14 * Modules/highlight/Highlight.cpp: Renamed from Source/WebCore/Modules/highlight/HighlightRangeGroup.cpp. 15 (WebCore::Highlight::Highlight): 16 (WebCore::Highlight::create): 17 (WebCore::Highlight::initializeSetLike): 18 (WebCore::Highlight::removeFromSetLike): 19 (WebCore::Highlight::clearFromSetLike): 20 (WebCore::Highlight::addToSetLike): 21 * Modules/highlight/Highlight.h: Renamed from Source/WebCore/Modules/highlight/HighlightRangeGroup.h. 22 * Modules/highlight/Highlight.idl: Renamed from Source/WebCore/Modules/highlight/HighlightRangeGroup.idl. 23 * Modules/highlight/HighlightRegister.cpp: Renamed from Source/WebCore/Modules/highlight/HighlightMap.cpp. 24 (WebCore::HighlightRegister::initializeMapLike): 25 (WebCore::HighlightRegister::setFromMapLike): 26 (WebCore::HighlightRegister::clear): 27 (WebCore::HighlightRegister::remove): 28 * Modules/highlight/HighlightRegister.h: Renamed from Source/WebCore/Modules/highlight/HighlightMap.h. 29 (WebCore::HighlightRegister::create): 30 (WebCore::HighlightRegister::map const): 31 * Modules/highlight/HighlightRegister.idl: Renamed from Source/WebCore/Modules/highlight/HighlightMap.idl. 32 * Sources.txt: 33 * WebCore.xcodeproj/project.pbxproj: 34 * bindings/js/WebCoreBuiltinNames.h: 35 * css/DOMCSSNamespace.cpp: 36 (WebCore::DOMCSSNamespace::highlights): 37 * css/DOMCSSNamespace.h: 38 * css/DOMCSSNamespace.idl: 39 * dom/Document.cpp: 40 (WebCore::Document::commonTeardown): 41 (WebCore::Document::highlightRegister): 42 (WebCore::Document::updateHighlightPositions): 43 (WebCore::Document::highlightMap): Deleted. 44 * dom/Document.h: 45 * rendering/HighlightData.cpp: 46 * rendering/InlineTextBox.cpp: 47 (WebCore::InlineTextBox::collectMarkedTextsForHighlights const): 48 * rendering/RenderReplaced.cpp: 49 (WebCore::RenderReplaced::calculateHighlightColor const): 50 * rendering/SelectionRangeData.cpp: 51 1 52 2020-10-20 Antoine Quint <graouts@webkit.org> 2 53 -
trunk/Source/WebCore/DerivedSources-input.xcfilelist
r268762 r268774 130 130 $(PROJECT_DIR)/Modules/geolocation/PositionErrorCallback.idl 131 131 $(PROJECT_DIR)/Modules/geolocation/PositionOptions.idl 132 $(PROJECT_DIR)/Modules/highlight/Highlight Map.idl133 $(PROJECT_DIR)/Modules/highlight/Highlight RangeGroup.idl132 $(PROJECT_DIR)/Modules/highlight/HighlightRegister.idl 133 $(PROJECT_DIR)/Modules/highlight/Highlight.idl 134 134 $(PROJECT_DIR)/Modules/indexeddb/DOMWindow+IndexedDatabase.idl 135 135 $(PROJECT_DIR)/Modules/indexeddb/IDBCursor.idl -
trunk/Source/WebCore/DerivedSources-output.xcfilelist
r268762 r268774 1111 1111 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHdrMetadataType.cpp 1112 1112 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHdrMetadataType.h 1113 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHighlight Map.cpp1114 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHighlight Map.h1115 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHighlight RangeGroup.cpp1116 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHighlight RangeGroup.h1113 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHighlightRegister.cpp 1114 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHighlightRegister.h 1115 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHighlight.cpp 1116 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHighlight.h 1117 1117 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHistory.cpp 1118 1118 $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSHistory.h -
trunk/Source/WebCore/DerivedSources.make
r268762 r268774 156 156 $(WebCore)/Modules/geolocation/PositionErrorCallback.idl \ 157 157 $(WebCore)/Modules/geolocation/PositionOptions.idl \ 158 $(WebCore)/Modules/highlight/Highlight Map.idl \159 $(WebCore)/Modules/highlight/Highlight RangeGroup.idl \158 $(WebCore)/Modules/highlight/HighlightRegister.idl \ 159 $(WebCore)/Modules/highlight/Highlight.idl \ 160 160 $(WebCore)/Modules/indexeddb/DOMWindow+IndexedDatabase.idl \ 161 161 $(WebCore)/Modules/indexeddb/IDBCursor.idl \ -
trunk/Source/WebCore/Modules/highlight/Highlight.cpp
r268773 r268774 1 1 /* 2 * Copyright (C) 2019 Apple Inc. All rights reserved.2 * Copyright (C) 2019-2020 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 25 25 26 26 #include "config.h" 27 #include "Highlight RangeGroup.h"27 #include "Highlight.h" 28 28 29 29 #include "IDLTypes.h" … … 39 39 namespace WebCore { 40 40 41 Highlight RangeGroup::HighlightRangeGroup(Ref<StaticRange>&& range)41 Highlight::Highlight(Ref<StaticRange>&& range) 42 42 { 43 43 auto myRange = WTFMove(range); … … 45 45 } 46 46 47 Ref<Highlight RangeGroup> HighlightRangeGroup::create(StaticRange& range)47 Ref<Highlight> Highlight::create(StaticRange& range) 48 48 { 49 return adoptRef(*new Highlight RangeGroup(range));49 return adoptRef(*new Highlight(range)); 50 50 } 51 51 52 void Highlight RangeGroup::initializeSetLike(DOMSetAdapter& set)52 void Highlight::initializeSetLike(DOMSetAdapter& set) 53 53 { 54 54 for (auto& rangeData : m_rangesData) … … 58 58 static void repaintRange(const StaticRange& range) 59 59 { 60 auto * startNode = &range.startContainer();61 auto * endNode = &range.endContainer();62 auto ordering = documentOrder(*startNode , *endNode);60 auto startNode = makeRefPtr(&range.startContainer()); 61 auto endNode = makeRefPtr(&range.endContainer()); 62 auto ordering = documentOrder(*startNode.get(), *endNode.get()); 63 63 if (is_eq(ordering)) { 64 64 if (auto renderer = startNode->renderer()) … … 70 70 endNode = &range.startContainer(); 71 71 } 72 73 auto node = startNode;74 while (node != endNode) {75 if (auto renderer = node->renderer())76 renderer->repaint();77 node = NodeTraversal::next(*node);72 auto simpleRange = makeSimpleRange(makeBoundaryPointBeforeNode(*startNode.get()), makeBoundaryPointAfterNode(*endNode.get())); 73 if (simpleRange) { 74 for (auto& node : intersectingNodes(simpleRange.value())) { 75 if (auto renderer = node.renderer()) 76 renderer->repaint(); 77 } 78 78 } 79 79 } 80 80 81 bool Highlight RangeGroup::removeFromSetLike(const StaticRange& range)81 bool Highlight::removeFromSetLike(const StaticRange& range) 82 82 { 83 83 return m_rangesData.removeFirstMatching([&range](const Ref<HighlightRangeData>& current) { … … 87 87 } 88 88 89 void Highlight RangeGroup::clearFromSetLike()89 void Highlight::clearFromSetLike() 90 90 { 91 91 for (auto& data : m_rangesData) … … 95 95 } 96 96 97 bool Highlight RangeGroup::addToSetLike(StaticRange& range)97 bool Highlight::addToSetLike(StaticRange& range) 98 98 { 99 99 if (notFound != m_rangesData.findMatching([&range](const Ref<HighlightRangeData>& current) { return current.get().range.get() == range; })) -
trunk/Source/WebCore/Modules/highlight/Highlight.h
r268773 r268774 1 1 /* 2 * Copyright (C) 2019 Apple Inc. All rights reserved.2 * Copyright (C) 2019-2020 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 35 35 class CSSStyleDeclaration; 36 36 class DOMSetAdapter; 37 class PropertySetCSSStyleDeclaration; 37 38 class StaticRange; 38 class PropertySetCSSStyleDeclaration; 39 39 40 40 41 struct HighlightRangeData : RefCounted<HighlightRangeData>, public CanMakeWeakPtr<HighlightRangeData> { 41 42 42 HighlightRangeData(Ref<StaticRange>&& range) 43 43 : range(WTFMove(range)) 44 44 { 45 45 } 46 47 46 static Ref<HighlightRangeData> create(Ref<StaticRange>&& range) 48 47 { 49 48 return adoptRef(*new HighlightRangeData(WTFMove(range))); 50 49 } 51 52 50 Ref<StaticRange> range; 53 51 Optional<Position> startPosition; … … 55 53 }; 56 54 57 class Highlight RangeGroup : public RefCounted<HighlightRangeGroup> {55 class Highlight : public RefCounted<Highlight> { 58 56 public: 59 static Ref<HighlightRangeGroup> create(StaticRange&); 60 57 static Ref<Highlight> create(StaticRange&); 61 58 void clearFromSetLike(); 62 59 bool addToSetLike(StaticRange&); 63 60 bool removeFromSetLike(const StaticRange&); 64 61 void initializeSetLike(DOMSetAdapter&); 65 66 62 const Vector<Ref<HighlightRangeData>>& rangesData() const { return m_rangesData; } 67 63 68 64 // FIXME: Add WEBCORE_EXPORT CSSStyleDeclaration& style(); 69 70 65 private: 71 66 Vector<Ref<HighlightRangeData>> m_rangesData; // FIXME: use a HashSet instead of a Vector <rdar://problem/57760614> 72 explicit Highlight RangeGroup(Ref<StaticRange>&&);67 explicit Highlight(Ref<StaticRange>&&); 73 68 }; 74 69 -
trunk/Source/WebCore/Modules/highlight/Highlight.idl
r268773 r268774 28 28 ImplementationLacksVTable, 29 29 Exposed=Window 30 ] interface Highlight RangeGroup{30 ] interface Highlight { 31 31 constructor(StaticRange range); 32 32 -
trunk/Source/WebCore/Modules/highlight/HighlightRegister.cpp
r268773 r268774 1 1 /* 2 * Copyright (C) 2019 Apple Inc. All rights reserved.2 * Copyright (C) 2019-2020 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 25 25 26 26 #include "config.h" 27 #include "Highlight Map.h"27 #include "HighlightRegister.h" 28 28 29 29 #include "IDLTypes.h" 30 30 #include "JSDOMMapLike.h" 31 #include "JSHighlight RangeGroup.h"31 #include "JSHighlight.h" 32 32 33 33 namespace WebCore { 34 34 35 void Highlight Map::initializeMapLike(DOMMapAdapter& map)35 void HighlightRegister::initializeMapLike(DOMMapAdapter& map) 36 36 { 37 37 for (auto& keyValue : m_map) 38 map.set<IDLDOMString, IDLInterface<Highlight RangeGroup>>(keyValue.key, keyValue.value);38 map.set<IDLDOMString, IDLInterface<Highlight>>(keyValue.key, keyValue.value); 39 39 } 40 40 41 void Highlight Map::setFromMapLike(String&& key, Ref<HighlightRangeGroup>&& value)41 void HighlightRegister::setFromMapLike(String&& key, Ref<Highlight>&& value) 42 42 { 43 43 m_map.set(WTFMove(key), WTFMove(value)); 44 44 } 45 45 46 void Highlight Map::clear()46 void HighlightRegister::clear() 47 47 { 48 48 m_map.clear(); 49 49 } 50 50 51 bool Highlight Map::remove(const String& key)51 bool HighlightRegister::remove(const String& key) 52 52 { 53 53 return m_map.remove(key); -
trunk/Source/WebCore/Modules/highlight/HighlightRegister.h
r268773 r268774 1 1 /* 2 * Copyright (C) 2019 Apple Inc. All rights reserved.2 * Copyright (C) 2019-2020 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 26 26 #pragma once 27 27 28 #include "Highlight RangeGroup.h"28 #include "Highlight.h" 29 29 #include <wtf/HashMap.h> 30 30 #include <wtf/RefCounted.h> … … 34 34 class DOMMapAdapter; 35 35 class DOMString; 36 class Highlight RangeGroup;36 class Highlight; 37 37 38 class Highlight Map : public RefCounted<HighlightMap> {38 class HighlightRegister : public RefCounted<HighlightRegister> { 39 39 public: 40 static Ref<Highlight Map> create() { return adoptRef(*new HighlightMap); }40 static Ref<HighlightRegister> create() { return adoptRef(*new HighlightRegister); } 41 41 42 42 void initializeMapLike(DOMMapAdapter&); 43 void setFromMapLike(String&&, Ref<Highlight RangeGroup>&&);43 void setFromMapLike(String&&, Ref<Highlight>&&); 44 44 void clear(); 45 45 bool remove(const String&); 46 46 47 const HashMap<String, Ref<Highlight RangeGroup>>& map() const { return m_map; }47 const HashMap<String, Ref<Highlight>>& map() const { return m_map; } 48 48 49 49 private: 50 Highlight Map() = default;51 HashMap<String, Ref<Highlight RangeGroup>> m_map;50 HighlightRegister() = default; 51 HashMap<String, Ref<Highlight>> m_map; 52 52 }; 53 53 -
trunk/Source/WebCore/Modules/highlight/HighlightRegister.idl
r268773 r268774 28 28 ImplementationLacksVTable, 29 29 Exposed=Window 30 ] interface Highlight Map{30 ] interface HighlightRegister { 31 31 constructor(); 32 32 33 maplike<DOMString, Highlight RangeGroup>;33 maplike<DOMString, Highlight>; 34 34 }; -
trunk/Source/WebCore/Sources.txt
r268762 r268774 65 65 Modules/geolocation/GeolocationCoordinates.cpp 66 66 Modules/geolocation/NavigatorGeolocation.cpp 67 Modules/highlight/Highlight Map.cpp68 Modules/highlight/Highlight RangeGroup.cpp67 Modules/highlight/HighlightRegister.cpp 68 Modules/highlight/Highlight.cpp 69 69 Modules/indexeddb/DOMWindowIndexedDatabase.cpp 70 70 Modules/indexeddb/IDBCursor.cpp … … 3062 3062 JSHashChangeEvent.cpp 3063 3063 JSHdrMetadataType.cpp 3064 JSHighlight Map.cpp3065 JSHighlight RangeGroup.cpp3064 JSHighlightRegister.cpp 3065 JSHighlight.cpp 3066 3066 JSHistory.cpp 3067 3067 JSHkdfParams.cpp -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r268762 r268774 7952 7952 44D8DA9A139545CD00337B75 /* SVGAnimateMotionElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SVGAnimateMotionElement.idl; sourceTree = "<group>"; }; 7953 7953 44E349F7246F4DC70068479C /* LibWebRTCEnumTraits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LibWebRTCEnumTraits.h; path = libwebrtc/LibWebRTCEnumTraits.h; sourceTree = "<group>"; }; 7954 44E88E4C2369128A009B4847 /* Highlight Map.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HighlightMap.idl; sourceTree = "<group>"; };7955 44E88E4D2369128B009B4847 /* Highlight RangeGroup.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HighlightRangeGroup.idl; sourceTree = "<group>"; };7956 44E88E50236A56AC009B4847 /* Highlight Map.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HighlightMap.h; sourceTree = "<group>"; };7957 44E88E51236A5C8D009B4847 /* Highlight RangeGroup.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HighlightRangeGroup.h; sourceTree = "<group>"; };7958 44E88E52236A667F009B4847 /* Highlight Map.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = HighlightMap.cpp; sourceTree = "<group>"; };7959 44E88E54236A66A1009B4847 /* Highlight RangeGroup.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = HighlightRangeGroup.cpp; sourceTree = "<group>"; };7954 44E88E4C2369128A009B4847 /* HighlightRegister.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HighlightRegister.idl; sourceTree = "<group>"; }; 7955 44E88E4D2369128B009B4847 /* Highlight.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Highlight.idl; sourceTree = "<group>"; }; 7956 44E88E50236A56AC009B4847 /* HighlightRegister.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HighlightRegister.h; sourceTree = "<group>"; }; 7957 44E88E51236A5C8D009B4847 /* Highlight.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Highlight.h; sourceTree = "<group>"; }; 7958 44E88E52236A667F009B4847 /* HighlightRegister.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = HighlightRegister.cpp; sourceTree = "<group>"; }; 7959 44E88E54236A66A1009B4847 /* Highlight.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Highlight.cpp; sourceTree = "<group>"; }; 7960 7960 450CEBEE15073BBE002BB149 /* LabelableElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LabelableElement.cpp; sourceTree = "<group>"; }; 7961 7961 450CEBEF15073BBE002BB149 /* LabelableElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LabelableElement.h; sourceTree = "<group>"; }; … … 19440 19440 isa = PBXGroup; 19441 19441 children = ( 19442 44E88E5 2236A667F009B4847 /* HighlightMap.cpp */,19443 44E88E5 0236A56AC009B4847 /* HighlightMap.h */,19444 44E88E4 C2369128A009B4847 /* HighlightMap.idl */,19445 44E88E5 4236A66A1009B4847 /* HighlightRangeGroup.cpp */,19446 44E88E5 1236A5C8D009B4847 /* HighlightRangeGroup.h */,19447 44E88E4 D2369128B009B4847 /* HighlightRangeGroup.idl */,19442 44E88E54236A66A1009B4847 /* Highlight.cpp */, 19443 44E88E51236A5C8D009B4847 /* Highlight.h */, 19444 44E88E4D2369128B009B4847 /* Highlight.idl */, 19445 44E88E52236A667F009B4847 /* HighlightRegister.cpp */, 19446 44E88E50236A56AC009B4847 /* HighlightRegister.h */, 19447 44E88E4C2369128A009B4847 /* HighlightRegister.idl */, 19448 19448 ); 19449 19449 path = highlight; -
trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h
r268762 r268774 130 130 macro(GPUUncapturedErrorEvent) \ 131 131 macro(GPUValidationError) \ 132 macro(Highlight Map) \133 macro(Highlight RangeGroup) \132 macro(HighlightRegister) \ 133 macro(Highlight) \ 134 134 macro(HTMLAttachmentElement) \ 135 135 macro(HTMLAudioElement) \ -
trunk/Source/WebCore/css/DOMCSSNamespace.cpp
r253538 r268774 35 35 #include "CSSPropertyParser.h" 36 36 #include "Document.h" 37 #include "Highlight Map.h"37 #include "HighlightRegister.h" 38 38 #include "StyleProperties.h" 39 39 #include <wtf/text/StringBuilder.h> … … 90 90 } 91 91 92 Highlight Map& DOMCSSNamespace::highlights(Document& document)92 HighlightRegister& DOMCSSNamespace::highlights(Document& document) 93 93 { 94 return document.highlight Map();94 return document.highlightRegister(); 95 95 } 96 96 -
trunk/Source/WebCore/css/DOMCSSNamespace.h
r253093 r268774 38 38 39 39 class Document; 40 class Highlight Map;41 class Highlight RangeGroup;40 class HighlightRegister; 41 class Highlight; 42 42 43 43 class DOMCSSNamespace final : public RefCounted<DOMCSSNamespace>, public Supplementable<DOMCSSNamespace> { … … 46 46 static bool supports(Document&, const String& conditionText); 47 47 static String escape(const String& ident); 48 static Highlight Map& highlights(Document&);48 static HighlightRegister& highlights(Document&); 49 49 }; 50 50 -
trunk/Source/WebCore/css/DOMCSSNamespace.idl
r267813 r268774 36 36 [CallWith=Document] static boolean supports(DOMString conditionText); 37 37 static DOMString escape(DOMString ident); 38 [EnabledAtRuntime=HighlightAPI, CallWith=Document] static readonly attribute Highlight Maphighlights;38 [EnabledAtRuntime=HighlightAPI, CallWith=Document] static readonly attribute HighlightRegister highlights; 39 39 }; -
trunk/Source/WebCore/dom/Document.cpp
r268268 r268774 112 112 #include "HTTPParsers.h" 113 113 #include "HashChangeEvent.h" 114 #include "Highlight Map.h"114 #include "HighlightRegister.h" 115 115 #include "History.h" 116 116 #include "HitTestResult.h" … … 793 793 clearScriptedAnimationController(); 794 794 795 if (m_highlight Map)796 m_highlight Map->clear();795 if (m_highlightRegister) 796 m_highlightRegister->clear(); 797 797 798 798 m_pendingScrollEventTargetList = nullptr; … … 2768 2768 } 2769 2769 2770 Highlight Map& Document::highlightMap()2771 { 2772 if (!m_highlight Map)2773 m_highlight Map = HighlightMap::create();2774 return *m_highlight Map;2770 HighlightRegister& Document::highlightRegister() 2771 { 2772 if (!m_highlightRegister) 2773 m_highlightRegister = HighlightRegister::create(); 2774 return *m_highlightRegister; 2775 2775 } 2776 2776 … … 2778 2778 { 2779 2779 Vector<WeakPtr<HighlightRangeData>> rangesData; 2780 if (m_highlight Map) {2781 for (auto& highlight : m_highlight Map->map()) {2780 if (m_highlightRegister) { 2781 for (auto& highlight : m_highlightRegister->map()) { 2782 2782 for (auto& rangeData : highlight.value->rangesData()) { 2783 2783 if (rangeData->startPosition && rangeData->endPosition) -
trunk/Source/WebCore/dom/Document.h
r268268 r268774 157 157 class HTMLMediaElement; 158 158 class HTMLVideoElement; 159 class Highlight Map;159 class HighlightRegister; 160 160 class HitTestLocation; 161 161 class HitTestRequest; … … 1570 1570 TextManipulationController* textManipulationControllerIfExists() { return m_textManipulationController.get(); } 1571 1571 1572 Highlight Map& highlightMap();1572 HighlightRegister& highlightRegister(); 1573 1573 void updateHighlightPositions(); 1574 1574 … … 1925 1925 #endif 1926 1926 1927 RefPtr<Highlight Map> m_highlightMap;1927 RefPtr<HighlightRegister> m_highlightRegister; 1928 1928 1929 1929 Timer m_visualUpdatesSuppressionTimer; -
trunk/Source/WebCore/rendering/HighlightData.cpp
r268484 r268774 34 34 #include "Document.h" 35 35 #include "FrameSelection.h" 36 #include "Highlight RangeGroup.h"36 #include "Highlight.h" 37 37 #include "Logging.h" 38 38 #include "Position.h" -
trunk/Source/WebCore/rendering/InlineTextBox.cpp
r268484 r268774 37 37 #include "GraphicsContext.h" 38 38 #include "HighlightData.h" 39 #include "Highlight Map.h"39 #include "HighlightRegister.h" 40 40 #include "HitTestResult.h" 41 41 #include "ImageBuffer.h" … … 1052 1052 auto& parentStyle = parentRenderer.style(); 1053 1053 HighlightData highlightData; 1054 for (auto& highlight : renderer().document().highlight Map().map()) {1054 for (auto& highlight : renderer().document().highlightRegister().map()) { 1055 1055 auto renderStyle = parentRenderer.getUncachedPseudoStyle({ PseudoId::Highlight, highlight.key }, &parentStyle); 1056 1056 if (!renderStyle) -
trunk/Source/WebCore/rendering/RenderReplaced.cpp
r268485 r268774 34 34 #include "HTMLParserIdioms.h" 35 35 #include "HighlightData.h" 36 #include "Highlight Map.h"36 #include "HighlightRegister.h" 37 37 #include "InlineElementBox.h" 38 38 #include "LayoutIntegrationLineIterator.h" … … 155 155 { 156 156 HighlightData highlightData; 157 for (auto& highlight : document().highlight Map().map()) {157 for (auto& highlight : document().highlightRegister().map()) { 158 158 for (auto& rangeData : highlight.value->rangesData()) { 159 159 if (!highlightData.setRenderRange(rangeData)) -
trunk/Source/WebCore/rendering/SelectionRangeData.cpp
r268484 r268774 33 33 #include "Document.h" 34 34 #include "FrameSelection.h" 35 #include "Highlight RangeGroup.h"35 #include "Highlight.h" 36 36 #include "Logging.h" 37 37 #include "Position.h"
Note:
See TracChangeset
for help on using the changeset viewer.