|
|
Chromium Code Reviews|
Created:
4 years, 4 months ago by yosin_UTC9 Modified:
4 years, 4 months ago CC:
blink-reviews, chromium-reviews Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionUse LayoutObject::selectionState() to check whether selection contains node or not
This patch changes |FrameSelection::respondToNodeModification()| to check
whether node to be removed in selection or not by using value of
|LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to
make node removal faster.
Execution time of attached performance test on my local PC:
Before: 3.80ms
After: 2.92ms
"fast/repaint/selection-after-remove.html" needs rebaseline since this patch
reduce invalidate elements, e.g. HTML and BODY elements aren't invalidated.
BUG=259874, 505335, 632333
TEST=PerformanceTests/DOM/remove_child_with_selection.html
Committed: https://crrev.com/3316ab0c51851da3f4ad14a7a273c21b542ba8f4
Cr-Commit-Position: refs/heads/master@{#410308}
Patch Set 1 : 2016-08-05T15:40:43 #Patch Set 2 : 2016-08-08T11:10:01 #
Messages
Total messages: 22 (17 generated)
The CQ bit was checked by yosin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== 2016-08-05T15:40:43 BUG= ========== to ========== Use LayoutObject::selectionState() to check whether selection contains node or not This patch changes |FrameSelection::respondToNodeModification()| to check whether node to be removed in selection or not by using value of |LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to make node removal faster. Execution time of attached performance test on my local PC: Before: 3.80ms After: 2.92ms BUG=63233 TEST=PerformanceTests/DOM/remove_child_with_selection.html ==========
Description was changed from ========== Use LayoutObject::selectionState() to check whether selection contains node or not This patch changes |FrameSelection::respondToNodeModification()| to check whether node to be removed in selection or not by using value of |LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to make node removal faster. Execution time of attached performance test on my local PC: Before: 3.80ms After: 2.92ms BUG=63233 TEST=PerformanceTests/DOM/remove_child_with_selection.html ========== to ========== Use LayoutObject::selectionState() to check whether selection contains node or not This patch changes |FrameSelection::respondToNodeModification()| to check whether node to be removed in selection or not by using value of |LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to make node removal faster. Execution time of attached performance test on my local PC: Before: 3.80ms After: 2.92ms BUG=259874, 632333 TEST=PerformanceTests/DOM/remove_child_with_selection.html ==========
Description was changed from ========== Use LayoutObject::selectionState() to check whether selection contains node or not This patch changes |FrameSelection::respondToNodeModification()| to check whether node to be removed in selection or not by using value of |LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to make node removal faster. Execution time of attached performance test on my local PC: Before: 3.80ms After: 2.92ms BUG=259874, 632333 TEST=PerformanceTests/DOM/remove_child_with_selection.html ========== to ========== Use LayoutObject::selectionState() to check whether selection contains node or not This patch changes |FrameSelection::respondToNodeModification()| to check whether node to be removed in selection or not by using value of |LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to make node removal faster. Execution time of attached performance test on my local PC: Before: 3.80ms After: 2.92ms BUG=259874, 505335, 632333 TEST=PerformanceTests/DOM/remove_child_with_selection.html ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Description was changed from ========== Use LayoutObject::selectionState() to check whether selection contains node or not This patch changes |FrameSelection::respondToNodeModification()| to check whether node to be removed in selection or not by using value of |LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to make node removal faster. Execution time of attached performance test on my local PC: Before: 3.80ms After: 2.92ms BUG=259874, 505335, 632333 TEST=PerformanceTests/DOM/remove_child_with_selection.html ========== to ========== Use LayoutObject::selectionState() to check whether selection contains node or not This patch changes |FrameSelection::respondToNodeModification()| to check whether node to be removed in selection or not by using value of |LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to make node removal faster. Execution time of attached performance test on my local PC: Before: 3.80ms After: 2.92ms BUG=259874, 505335, 632333 TEST=PerformanceTests/DOM/remove_child_with_selection.html # Failed tests on 2016-08-05T15:40:43 - fast/repaint/selection-after-remove.html - imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-baseline-empty-001b.html ==========
Description was changed from
==========
Use LayoutObject::selectionState() to check whether selection contains node or
not
This patch changes |FrameSelection::respondToNodeModification()| to check
whether node to be removed in selection or not by using value of
|LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to
make node removal faster.
Execution time of attached performance test on my local PC:
Before: 3.80ms
After: 2.92ms
BUG=259874, 505335, 632333
TEST=PerformanceTests/DOM/remove_child_with_selection.html
# Failed tests on 2016-08-05T15:40:43
- fast/repaint/selection-after-remove.html
-
imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-baseline-empty-001b.html
==========
to
==========
Use LayoutObject::selectionState() to check whether selection contains node or
not
This patch changes |FrameSelection::respondToNodeModification()| to check
whether node to be removed in selection or not by using value of
|LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to
make node removal faster.
Execution time of attached performance test on my local PC:
Before: 3.80ms
After: 2.92ms
"fast/repaint/selection-after-remove.html" needs rebaseline since this patch
reduce invalidate elements. Following lines are removed from test expectation
text:
{
"object": "LayoutBlockFlow HTML",
"reason": "selection"
},
{
"object": "LayoutBlockFlow BODY",
"reason": "selection"
},
BUG=259874, 505335, 632333
TEST=PerformanceTests/DOM/remove_child_with_selection.html
==========
The CQ bit was checked by yosin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from
==========
Use LayoutObject::selectionState() to check whether selection contains node or
not
This patch changes |FrameSelection::respondToNodeModification()| to check
whether node to be removed in selection or not by using value of
|LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to
make node removal faster.
Execution time of attached performance test on my local PC:
Before: 3.80ms
After: 2.92ms
"fast/repaint/selection-after-remove.html" needs rebaseline since this patch
reduce invalidate elements. Following lines are removed from test expectation
text:
{
"object": "LayoutBlockFlow HTML",
"reason": "selection"
},
{
"object": "LayoutBlockFlow BODY",
"reason": "selection"
},
BUG=259874, 505335, 632333
TEST=PerformanceTests/DOM/remove_child_with_selection.html
==========
to
==========
Use LayoutObject::selectionState() to check whether selection contains node or
not
This patch changes |FrameSelection::respondToNodeModification()| to check
whether node to be removed in selection or not by using value of
|LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to
make node removal faster.
Execution time of attached performance test on my local PC:
Before: 3.80ms
After: 2.92ms
"fast/repaint/selection-after-remove.html" needs rebaseline since this patch
reduce invalidate elements, e.g. HTML and BODY elements aren't invalidated.
BUG=259874, 505335, 632333
TEST=PerformanceTests/DOM/remove_child_with_selection.html
==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
yosin@chromium.org changed reviewers: + xiaochengh@chromium.org, yoichio@chromium.org
PTAL
lgtm
The CQ bit was checked by yosin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Use LayoutObject::selectionState() to check whether selection contains node or not This patch changes |FrameSelection::respondToNodeModification()| to check whether node to be removed in selection or not by using value of |LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to make node removal faster. Execution time of attached performance test on my local PC: Before: 3.80ms After: 2.92ms "fast/repaint/selection-after-remove.html" needs rebaseline since this patch reduce invalidate elements, e.g. HTML and BODY elements aren't invalidated. BUG=259874, 505335, 632333 TEST=PerformanceTests/DOM/remove_child_with_selection.html ========== to ========== Use LayoutObject::selectionState() to check whether selection contains node or not This patch changes |FrameSelection::respondToNodeModification()| to check whether node to be removed in selection or not by using value of |LayoutObject::selectionState()| instead of using |Range::intersectsNode()| to make node removal faster. Execution time of attached performance test on my local PC: Before: 3.80ms After: 2.92ms "fast/repaint/selection-after-remove.html" needs rebaseline since this patch reduce invalidate elements, e.g. HTML and BODY elements aren't invalidated. BUG=259874, 505335, 632333 TEST=PerformanceTests/DOM/remove_child_with_selection.html Committed: https://crrev.com/3316ab0c51851da3f4ad14a7a273c21b542ba8f4 Cr-Commit-Position: refs/heads/master@{#410308} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/3316ab0c51851da3f4ad14a7a273c21b542ba8f4 Cr-Commit-Position: refs/heads/master@{#410308} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
