summaryrefslogtreecommitdiffstats
path: root/webkit/glue/editor_client_impl.cc
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-17 19:10:55 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-17 19:10:55 +0000
commit762ec957bb973eb4039061ff3d1d423090311835 (patch)
treef8a7fcafb901f654c049a249d32c3d93056702f0 /webkit/glue/editor_client_impl.cc
parente0bba9950b1b2ff97835d6687a300944bd80520a (diff)
downloadchromium_src-762ec957bb973eb4039061ff3d1d423090311835.zip
chromium_src-762ec957bb973eb4039061ff3d1d423090311835.tar.gz
chromium_src-762ec957bb973eb4039061ff3d1d423090311835.tar.bz2
Catch up with webkit change which removes id() from the HTMLElement
and instead accesses the attributes directly. BUG=none TEST=none TBR=jparent Review URL: http://codereview.chromium.org/172053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23562 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/editor_client_impl.cc')
-rw-r--r--webkit/glue/editor_client_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc
index 9a6e950..22ab39d 100644
--- a/webkit/glue/editor_client_impl.cc
+++ b/webkit/glue/editor_client_impl.cc
@@ -96,7 +96,7 @@ bool EditorClientImpl::shouldShowDeleteInterface(WebCore::HTMLElement* elem) {
// it if in testing mode and the test specifically requests it by using this
// magic class name.
return WebKit::layoutTestMode() &&
- elem->className() == "needsDeletionUI";
+ elem->getAttribute(WebCore::HTMLNames::classAttr) == "needsDeletionUI";
}
bool EditorClientImpl::smartInsertDeleteEnabled() {