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

Side by Side Diff: Source/core/editing/EditingStyle.cpp

Issue 344813003: Include Document.h in fewer headers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 6 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
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.h ('k') | Source/core/html/HTMLShadowElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009 Apple Computer, Inc. 2 * Copyright (C) 2007, 2008, 2009 Apple Computer, Inc.
3 * Copyright (C) 2010, 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2010, 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 21 matching lines...) Expand all
32 #include "core/css/CSSComputedStyleDeclaration.h" 32 #include "core/css/CSSComputedStyleDeclaration.h"
33 #include "core/css/parser/BisonCSSParser.h" 33 #include "core/css/parser/BisonCSSParser.h"
34 #include "core/css/CSSRuleList.h" 34 #include "core/css/CSSRuleList.h"
35 #include "core/css/CSSStyleRule.h" 35 #include "core/css/CSSStyleRule.h"
36 #include "core/css/CSSValueList.h" 36 #include "core/css/CSSValueList.h"
37 #include "core/css/FontSize.h" 37 #include "core/css/FontSize.h"
38 #include "core/css/RuntimeCSSEnabled.h" 38 #include "core/css/RuntimeCSSEnabled.h"
39 #include "core/css/StylePropertySet.h" 39 #include "core/css/StylePropertySet.h"
40 #include "core/css/StyleRule.h" 40 #include "core/css/StyleRule.h"
41 #include "core/css/resolver/StyleResolver.h" 41 #include "core/css/resolver/StyleResolver.h"
42 #include "core/dom/Document.h"
42 #include "core/dom/Element.h" 43 #include "core/dom/Element.h"
43 #include "core/dom/Node.h" 44 #include "core/dom/Node.h"
44 #include "core/dom/NodeTraversal.h" 45 #include "core/dom/NodeTraversal.h"
45 #include "core/dom/Position.h" 46 #include "core/dom/Position.h"
46 #include "core/dom/QualifiedName.h" 47 #include "core/dom/QualifiedName.h"
47 #include "core/editing/ApplyStyleCommand.h" 48 #include "core/editing/ApplyStyleCommand.h"
48 #include "core/editing/Editor.h" 49 #include "core/editing/Editor.h"
49 #include "core/editing/FrameSelection.h" 50 #include "core/editing/FrameSelection.h"
50 #include "core/editing/HTMLInterchange.h" 51 #include "core/editing/HTMLInterchange.h"
51 #include "core/editing/htmlediting.h" 52 #include "core/editing/htmlediting.h"
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 { 1661 {
1661 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { 1662 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) {
1662 RefPtrWillBeRawPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSCompu tedStyleDeclaration::create(ancestor); 1663 RefPtrWillBeRawPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSCompu tedStyleDeclaration::create(ancestor);
1663 if (!hasTransparentBackgroundColor(ancestorStyle.get())) 1664 if (!hasTransparentBackgroundColor(ancestorStyle.get()))
1664 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor ); 1665 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor );
1665 } 1666 }
1666 return nullptr; 1667 return nullptr;
1667 } 1668 }
1668 1669
1669 } 1670 }
OLDNEW
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.h ('k') | Source/core/html/HTMLShadowElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698