summaryrefslogtreecommitdiff
path: root/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/frame/CallFrameView.java
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2014-07-25 20:12:40 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-07-24 20:55:36 +0000
commit6044be7330c93bc8dacb0f63e62da8029f39a16f (patch)
tree0ba72f5de1949e0527874a799baa224cbe1537e0 /platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/frame/CallFrameView.java
parentb03a5855292feb8c331815f883fe64372aacd872 (diff)
parente5266e2343c8d275d79fa0be725180d0fe3a993c (diff)
downloadidea-6044be7330c93bc8dacb0f63e62da8029f39a16f.tar.gz
Merge "Merge remote-tracking branch 'aosp/upstream-master' into merge"
Diffstat (limited to 'platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/frame/CallFrameView.java')
-rw-r--r--platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/frame/CallFrameView.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/frame/CallFrameView.java b/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/frame/CallFrameView.java
index eb698e685403..3cb993a01194 100644
--- a/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/frame/CallFrameView.java
+++ b/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/frame/CallFrameView.java
@@ -16,6 +16,8 @@ public final class CallFrameView extends StackFrameImplBase implements VariableC
private final Script script;
+ private final boolean inLibraryContent;
+
public CallFrameView(@NotNull CallFrame callFrame, @NotNull DebuggerViewSupport debugProcess, @Nullable Script script) {
this(callFrame, debugProcess.getSourceInfo(script, callFrame), debugProcess, script);
}
@@ -29,6 +31,9 @@ public final class CallFrameView extends StackFrameImplBase implements VariableC
this.debugProcess = debugProcess;
this.callFrame = callFrame;
this.script = script;
+
+ // isInLibraryContent call could be costly, so we compute it only once (our customizePresentation called on each repaint)
+ inLibraryContent = sourceInfo != null && debugProcess.isInLibraryContent(sourceInfo, script);
}
@Override
@@ -48,6 +53,11 @@ public final class CallFrameView extends StackFrameImplBase implements VariableC
}
@Override
+ protected boolean isInLibraryContent() {
+ return inLibraryContent;
+ }
+
+ @Override
protected void customizeInvalidFramePresentation(ColoredTextContainer component) {
assert sourceInfo == null;