Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornsandonato2009-01-14 16:08:25 +0000
committernsandonato2009-01-14 16:08:25 +0000
commitbee99c91ea6799f3bc7d7abd5968f00a4645dca4 (patch)
tree5b32b5bcdc1efff2fe9ccdb3191bbedfad806c8a /bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html
parent0e9a88ae2918dee266b9bbbc409fb7ec66f746ca (diff)
downloadwebtools.sourceediting-bee99c91ea6799f3bc7d7abd5968f00a4645dca4.tar.gz
webtools.sourceediting-bee99c91ea6799f3bc7d7abd5968f00a4645dca4.tar.xz
webtools.sourceediting-bee99c91ea6799f3bc7d7abd5968f00a4645dca4.zip
[256105] repeated StackOverflowError editing HTML file
Diffstat (limited to 'bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html')
-rw-r--r--bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/htmlcss/StyleElementAdapter.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/htmlcss/StyleElementAdapter.java b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/htmlcss/StyleElementAdapter.java
index 3ef97b9cc9..c9a6abc776 100644
--- a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/htmlcss/StyleElementAdapter.java
+++ b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/htmlcss/StyleElementAdapter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004-2006 IBM Corporation and others.
+ * Copyright (c) 2004, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -217,10 +217,11 @@ public class StyleElementAdapter extends AbstractStyleSheetAdapter implements IS
return null;
}
+ ICSSModel model = super.createModel(addListener);
+
if (!addListener)
- return super.createModel(false);
+ return model;
- ICSSModel model = super.createModel();
IStructuredDocument structuredDocument = model.getStructuredDocument();
if (structuredDocument == null)
return null;

Back to the top