diff options
author | Cary Clark <cary@android.com> | 2010-11-08 11:35:24 -0500 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2010-11-08 15:33:48 -0500 |
commit | f1610d01f92cb77827d2de13c0ed38554e4f0790 (patch) | |
tree | 4d10890cc77381af3dc3a55d98c0bf8a0b0866cd /WebCore/dom/Element.cpp | |
parent | 9934d5d8bbc7e1f13e620eac325528f9e92d67ee (diff) | |
download | external_webkit-f1610d01f92cb77827d2de13c0ed38554e4f0790.zip external_webkit-f1610d01f92cb77827d2de13c0ed38554e4f0790.tar.gz external_webkit-f1610d01f92cb77827d2de13c0ed38554e4f0790.tar.bz2 |
update dom version on style change
The DOM version number is used to know when the
nav cache is out of date. Webkit changes the version
when DOM attributes change, but not when the CSS
style property changes.
Tracking the style version fixes Google properties like
the 'Options' menu that is available on mobile
devices after a search.
Additionally, fix a crash if the root layer doesn't
exist. And, rebuild the nav cache always on touch.
bug:2628448
Change-Id: I50aa258c1b057ac7deed00f6eca37c0ee323efcf
Diffstat (limited to 'WebCore/dom/Element.cpp')
-rw-r--r-- | WebCore/dom/Element.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/WebCore/dom/Element.cpp b/WebCore/dom/Element.cpp index 83e129e..10ba71b 100644 --- a/WebCore/dom/Element.cpp +++ b/WebCore/dom/Element.cpp @@ -930,6 +930,9 @@ void Element::recalcStyle(StyleChange change) #endif if ((change > NoChange || needsStyleRecalc())) { +#ifdef ANDROID_STYLE_VERSION + document()->incStyleVersion(); +#endif if (hasRareData()) rareData()->resetComputedStyle(); } |