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

Unified Diff: Source/web/tests/WebDocumentTest.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated change after Doug's review. Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/mac/WebSubstringUtil.mm ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/WebDocumentTest.cpp
diff --git a/Source/web/tests/WebDocumentTest.cpp b/Source/web/tests/WebDocumentTest.cpp
index c08040613023101a82ac81a9bc05e67d333c5718..3f952589bcf32bfe12ac00fe791f7ca7b3f9760f 100644
--- a/Source/web/tests/WebDocumentTest.cpp
+++ b/Source/web/tests/WebDocumentTest.cpp
@@ -41,7 +41,7 @@ TEST(WebDocumentTest, InsertStyleSheet)
HTMLElement* bodyElement = coreDoc->body();
ASSERT(bodyElement);
- LayoutStyle* style = bodyElement->layoutStyle();
+ const LayoutStyle* style = bodyElement->layoutStyle();
ASSERT(style);
// Inserted stylesheet not yet applied.
@@ -73,13 +73,13 @@ TEST(WebDocumentTest, BeginExitTransition)
Element* transitionElement = coreDoc->getElementById("foo");
ASSERT(transitionElement);
- LayoutStyle* transitionStyle = transitionElement->layoutStyle();
+ const LayoutStyle* transitionStyle = transitionElement->layoutStyle();
ASSERT(transitionStyle);
HTMLElement* bodyElement = coreDoc->body();
ASSERT(bodyElement);
- LayoutStyle* bodyStyle = bodyElement->layoutStyle();
+ const LayoutStyle* bodyStyle = bodyElement->layoutStyle();
ASSERT(bodyStyle);
// The transition_exit.css stylesheet should not have been applied at this point.
ASSERT_EQ(Color(0, 0, 0), bodyStyle->visitedDependentColor(CSSPropertyColor));
@@ -118,13 +118,13 @@ TEST(WebDocumentTest, BeginExitTransitionToNativeApp)
Element* transitionElement = coreDoc->getElementById("foo");
ASSERT(transitionElement);
- LayoutStyle* transitionStyle = transitionElement->layoutStyle();
+ const LayoutStyle* transitionStyle = transitionElement->layoutStyle();
ASSERT(transitionStyle);
HTMLElement* bodyElement = coreDoc->body();
ASSERT(bodyElement);
- LayoutStyle* bodyStyle = bodyElement->layoutStyle();
+ const LayoutStyle* bodyStyle = bodyElement->layoutStyle();
ASSERT(bodyStyle);
// The transition_exit.css stylesheet should not have been applied at this point.
ASSERT_EQ(Color(0, 0, 0), bodyStyle->visitedDependentColor(CSSPropertyColor));
@@ -161,7 +161,7 @@ TEST(WebDocumentTest, HideAndShowTransitionElements)
Element* transitionElement = coreDoc->getElementById("foo");
ASSERT(transitionElement);
- LayoutStyle* transitionStyle = transitionElement->layoutStyle();
+ const LayoutStyle* transitionStyle = transitionElement->layoutStyle();
ASSERT(transitionStyle);
EXPECT_EQ(transitionStyle->opacity(), 1);
« no previous file with comments | « Source/web/mac/WebSubstringUtil.mm ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698