Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Issue 670093002: Get rid of AXComputedObjectAttributeCache (Closed)

Created:
6 years, 2 months ago by dmazzoni
Modified:
6 years, 2 months ago
Reviewers:
aboxhall
CC:
blink-reviews, dmazzoni, aboxhall
Project:
blink
Visibility:
Public.

Description

Get rid of AXComputedObjectAttributeCache We added AXComputedObjectAttributeCache to WebKit because we wanted to cache some expensive computations in the AX tree, but none of the other WebKit ports wanted it. A much simpler solution is to just store the cached value inside the AXObject. To determine if the value is out of date, I added a modification count that increments whenever there's a layout or DOM mutation. We can reuse the same modification count for more cached attributes. BUG=425879 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184331

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -72 lines) Patch
M Source/core/accessibility/AXObject.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/accessibility/AXObject.cpp View 2 chunks +13 lines, -19 lines 0 comments Download
M Source/core/accessibility/AXObjectCacheImpl.h View 3 chunks +4 lines, -23 lines 0 comments Download
M Source/core/accessibility/AXObjectCacheImpl.cpp View 7 chunks +7 lines, -30 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
dmazzoni
6 years, 2 months ago (2014-10-22 06:22:39 UTC) #2
dmazzoni
Ping
6 years, 2 months ago (2014-10-23 15:44:52 UTC) #3
aboxhall
lgtm https://codereview.chromium.org/670093002/diff/1/Source/core/accessibility/AXObject.h File Source/core/accessibility/AXObject.h (right): https://codereview.chromium.org/670093002/diff/1/Source/core/accessibility/AXObject.h#newcode584 Source/core/accessibility/AXObject.h:584: // The following cached attribute values are only ...
6 years, 2 months ago (2014-10-23 21:48:11 UTC) #4
dmazzoni
https://codereview.chromium.org/670093002/diff/1/Source/core/accessibility/AXObject.h File Source/core/accessibility/AXObject.h (right): https://codereview.chromium.org/670093002/diff/1/Source/core/accessibility/AXObject.h#newcode584 Source/core/accessibility/AXObject.h:584: // The following cached attribute values are only valid ...
6 years, 2 months ago (2014-10-23 21:51:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/670093002/20001
6 years, 2 months ago (2014-10-24 05:47:06 UTC) #7
commit-bot: I haz the power
6 years, 2 months ago (2014-10-24 06:51:12 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 184331

Powered by Google App Engine
This is Rietveld 408576698