summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/html
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-05-03 18:22:33 +0100
committerSteve Block <steveblock@google.com>2012-05-03 18:34:37 +0100
commit70cbe34eb294d600eab2bdef7a78959c37ff7781 (patch)
treec005969d9c3c191436186520b8da362b4ca35bc8 /Source/WebCore/html
parent0b6461e8a4be51c556f77873d5ec18767cb26f58 (diff)
downloadexternal_webkit-70cbe34eb294d600eab2bdef7a78959c37ff7781.zip
external_webkit-70cbe34eb294d600eab2bdef7a78959c37ff7781.tar.gz
external_webkit-70cbe34eb294d600eab2bdef7a78959c37ff7781.tar.bz2
Cherry-pick WebKit change r104441 to fix a rendering crash
See http://trac.webkit.org/changeset/104441 Bug: 6293773 Change-Id: Icf18ede57a9d505635e1ef8e15b7b2a426ae5a8c
Diffstat (limited to 'Source/WebCore/html')
-rw-r--r--Source/WebCore/html/HTMLElement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/html/HTMLElement.cpp b/Source/WebCore/html/HTMLElement.cpp
index 82e33d1..0aa9664 100644
--- a/Source/WebCore/html/HTMLElement.cpp
+++ b/Source/WebCore/html/HTMLElement.cpp
@@ -570,7 +570,7 @@ static Element* contextElementForInsertion(const String& where, Element* element
{
if (equalIgnoringCase(where, "beforeBegin") || equalIgnoringCase(where, "afterEnd")) {
ContainerNode* parent = element->parentNode();
- if (parent && parent->isDocumentNode()) {
+ if (parent && !parent->isElementNode()) {
ec = NO_MODIFICATION_ALLOWED_ERR;
return 0;
}