Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: Source/core/dom/Node.h

Issue 22604008: Allow SVG images to not taint the canvas with drawImage/drawPattern (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase after r156375 Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 393
394 bool childNeedsDistributionRecalc() const { return getFlag(ChildNeedsDistrib utionRecalc); } 394 bool childNeedsDistributionRecalc() const { return getFlag(ChildNeedsDistrib utionRecalc); }
395 void setChildNeedsDistributionRecalc() { setFlag(ChildNeedsDistributionReca lc); } 395 void setChildNeedsDistributionRecalc() { setFlag(ChildNeedsDistributionReca lc); }
396 void clearChildNeedsDistributionRecalc() { clearFlag(ChildNeedsDistribution Recalc); } 396 void clearChildNeedsDistributionRecalc() { clearFlag(ChildNeedsDistribution Recalc); }
397 void markAncestorsWithChildNeedsDistributionRecalc(); 397 void markAncestorsWithChildNeedsDistributionRecalc();
398 398
399 void recalcDistribution(); 399 void recalcDistribution();
400 400
401 bool shouldNotifyRendererWithIdenticalStyles() const { return getFlag(Notify RendererWithIdenticalStyles); } 401 bool shouldNotifyRendererWithIdenticalStyles() const { return getFlag(Notify RendererWithIdenticalStyles); }
402 402
403 void setIsLink(bool f) { setFlag(f, IsLinkFlag); } 403 void setIsLink(bool f);
404 void setIsLink() { setFlag(IsLinkFlag); }
405 void clearIsLink() { clearFlag(IsLinkFlag); }
406 404
407 void setInNamedFlow() { setFlag(InNamedFlowFlag); } 405 void setInNamedFlow() { setFlag(InNamedFlowFlag); }
408 void clearInNamedFlow() { clearFlag(InNamedFlowFlag); } 406 void clearInNamedFlow() { clearFlag(InNamedFlowFlag); }
409 407
410 bool hasScopedHTMLStyleChild() const { return getFlag(HasScopedHTMLStyleChil dFlag); } 408 bool hasScopedHTMLStyleChild() const { return getFlag(HasScopedHTMLStyleChil dFlag); }
411 void setHasScopedHTMLStyleChild(bool flag) { setFlag(flag, HasScopedHTMLStyl eChildFlag); } 409 void setHasScopedHTMLStyleChild(bool flag) { setFlag(flag, HasScopedHTMLStyl eChildFlag); }
412 410
413 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); } 411 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); }
414 void setHasEventTargetData(bool flag) { setFlag(flag, HasEventTargetDataFlag ); } 412 void setHasEventTargetData(bool flag) { setFlag(flag, HasEventTargetDataFlag ); }
415 413
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 935
938 } //namespace 936 } //namespace
939 937
940 #ifndef NDEBUG 938 #ifndef NDEBUG
941 // Outside the WebCore namespace for ease of invocation from gdb. 939 // Outside the WebCore namespace for ease of invocation from gdb.
942 void showTree(const WebCore::Node*); 940 void showTree(const WebCore::Node*);
943 void showNodePath(const WebCore::Node*); 941 void showNodePath(const WebCore::Node*);
944 #endif 942 #endif
945 943
946 #endif 944 #endif
OLDNEW
« no previous file with comments | « LayoutTests/svg/as-image/svg-canvas-xhtml-tainted-expected.txt ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698