projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
WebKit
/
Source
/
platform
/
graphics
/
GraphicsContextStateSaver.h
diff --git
a/src/third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h
b/src/third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h
index
0993d6a
..
7134a98
100644
(file)
--- a/
src/third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h
+++ b/
src/third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h
@@
-58,6
+58,13
@@
public:
m_saveAndRestore = true;
}
+ void saveIfNeeded()
+ {
+ if (saved())
+ return;
+ save();
+ }
+
void restore()
{
ASSERT(m_saveAndRestore);