Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Thienel2016-03-25 14:43:50 -0400
committerFlorian Thienel2016-03-25 14:43:50 -0400
commitc6b4b6885fa11a68cf01527c4c44e50f6de230c0 (patch)
tree93a953326f360f03c0d67d4302cdafbf6a5497ae
parent49389d99f3f06683861590faaf65a2c4b472855d (diff)
downloadorg.eclipse.mylyn.docs.vex-c6b4b6885fa11a68cf01527c4c44e50f6de230c0.tar.gz
org.eclipse.mylyn.docs.vex-c6b4b6885fa11a68cf01527c4c44e50f6de230c0.tar.xz
org.eclipse.mylyn.docs.vex-c6b4b6885fa11a68cf01527c4c44e50f6de230c0.zip
move block-level pseudo-elements into the frame
Signed-off-by: Florian Thienel <florian@thienel.org>
-rw-r--r--org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java
index 4082aba7..2a621e99 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java
@@ -271,7 +271,7 @@ public class CssBasedBoxModelBuilder implements IBoxModelBuilder {
inlineElementContent = paragraph(styles, visualizeText(comment.getContent(), comment.getRange().resizeBy(1, -1), comment, styles));
}
- return nodeReferenceWithText(comment, surroundWithPseudoElements(frame(surroundWithInlinePseudoElements(inlineElementContent, comment, styles), styles), comment, styles));
+ return nodeReferenceWithText(comment, frame(surroundWithPseudoElements(surroundWithInlinePseudoElements(inlineElementContent, comment, styles), comment, styles), styles));
}
@Override
@@ -283,7 +283,7 @@ public class CssBasedBoxModelBuilder implements IBoxModelBuilder {
inlineElementContent = paragraph(styles, visualizeText(pi.getContent(), pi.getRange().resizeBy(1, -1), pi, styles));
}
- return nodeReferenceWithText(pi, surroundWithPseudoElements(frame(surroundWithInlinePseudoElements(inlineElementContent, pi, styles), styles), pi, styles));
+ return nodeReferenceWithText(pi, frame(surroundWithPseudoElements(surroundWithInlinePseudoElements(inlineElementContent, pi, styles), pi, styles), styles));
}
});
}
@@ -332,11 +332,11 @@ public class CssBasedBoxModelBuilder implements IBoxModelBuilder {
final boolean mayContainText = mayContainText(element);
final boolean containsInlineContent = containsInlineContent(childrenResults);
if (mayContainText) {
- return nodeReferenceWithText(element, surroundWithPseudoElements(frame(content, styles), element, styles));
+ return nodeReferenceWithText(element, frame(surroundWithPseudoElements(content, element, styles), styles));
} else if (containsInlineContent) {
- return nodeReferenceWithInlineContent(element, surroundWithPseudoElements(frame(content, styles), element, styles));
+ return nodeReferenceWithInlineContent(element, frame(surroundWithPseudoElements(content, element, styles), styles));
} else {
- return nodeReference(element, surroundWithPseudoElements(frame(content, styles), element, styles));
+ return nodeReference(element, frame(surroundWithPseudoElements(content, element, styles), styles));
}
}

Back to the top