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

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

Issue 948053002: Revert 190605 "Make RenderObject::style() return a const object" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: 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 | « trunk/Source/web/mac/WebSubstringUtil.mm ('k') | trunk/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/web/tests/WebDocumentTest.cpp
===================================================================
--- trunk/Source/web/tests/WebDocumentTest.cpp (revision 190671)
+++ trunk/Source/web/tests/WebDocumentTest.cpp (working copy)
@@ -41,7 +41,7 @@
HTMLElement* bodyElement = coreDoc->body();
ASSERT(bodyElement);
- const LayoutStyle* style = bodyElement->layoutStyle();
+ LayoutStyle* style = bodyElement->layoutStyle();
ASSERT(style);
// Inserted stylesheet not yet applied.
@@ -73,13 +73,13 @@
Element* transitionElement = coreDoc->getElementById("foo");
ASSERT(transitionElement);
- const LayoutStyle* transitionStyle = transitionElement->layoutStyle();
+ LayoutStyle* transitionStyle = transitionElement->layoutStyle();
ASSERT(transitionStyle);
HTMLElement* bodyElement = coreDoc->body();
ASSERT(bodyElement);
- const LayoutStyle* bodyStyle = bodyElement->layoutStyle();
+ 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 @@
Element* transitionElement = coreDoc->getElementById("foo");
ASSERT(transitionElement);
- const LayoutStyle* transitionStyle = transitionElement->layoutStyle();
+ LayoutStyle* transitionStyle = transitionElement->layoutStyle();
ASSERT(transitionStyle);
HTMLElement* bodyElement = coreDoc->body();
ASSERT(bodyElement);
- const LayoutStyle* bodyStyle = bodyElement->layoutStyle();
+ 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 @@
Element* transitionElement = coreDoc->getElementById("foo");
ASSERT(transitionElement);
- const LayoutStyle* transitionStyle = transitionElement->layoutStyle();
+ LayoutStyle* transitionStyle = transitionElement->layoutStyle();
ASSERT(transitionStyle);
EXPECT_EQ(transitionStyle->opacity(), 1);
« no previous file with comments | « trunk/Source/web/mac/WebSubstringUtil.mm ('k') | trunk/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698