diff options
Diffstat (limited to 'Source/WebCore/dom/StyleElement.cpp')
-rw-r--r-- | Source/WebCore/dom/StyleElement.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/WebCore/dom/StyleElement.cpp b/Source/WebCore/dom/StyleElement.cpp index f984fda..9892ed7 100644 --- a/Source/WebCore/dom/StyleElement.cpp +++ b/Source/WebCore/dom/StyleElement.cpp @@ -103,8 +103,10 @@ void StyleElement::process(Element* e) for (Node* c = e->firstChild(); c; c = c->nextSibling()) { if (isValidStyleChild(c)) { unsigned length = c->nodeValue().length(); - if (length > std::numeric_limits<unsigned>::max() - resultLength) - CRASH(); + if (length > std::numeric_limits<unsigned>::max() - resultLength) { + createSheet(e, m_startLineNumber, ""); + return; + } resultLength += length; } } |